https://bugs.kde.org/show_bug.cgi?id=435615

--- Comment #3 from Jonathan Marten <[email protected]> ---
Simplifying the regexp in OldStyleConnect::VisitMacroExpands() as follows:

-    static regex rx(R"(Q_PRIVATE_SLOT\s*\((.*)\s*,\s*.*\s+(.*)\(.*)");
+    static regex rx(R"(Q_PRIVATE_SLOT\s*\((.*),.*\s(.*)\(.*)");

seems to eliminate the crash.  I don't know what sort of pattern the regexp is
intended to match, but believe that the two regexps should be equivalent.  For
.*\s* the \s* will never match anything because everything will have been
captured by the .* and for \s*.*\s+ the .* will match anything that the first
\s* doesn't and the second \s+ will only match a single space.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to