diff --git a/plugins/DebuggerCore/unix/Unix.cpp b/plugins/DebuggerCore/unix/Unix.cpp index 5c5498f3a..708660c86 100644 --- a/plugins/DebuggerCore/unix/Unix.cpp +++ b/plugins/DebuggerCore/unix/Unix.cpp @@ -209,7 +209,7 @@ Status Unix::execute_process(const QString &path, const QString &cwd, const QLis p = argv_pointers; while (*p) { - delete[] * p++; + delete[] *p++; } delete[] argv_pointers; } diff --git a/src/widgets/SyntaxHighlighter.cpp b/src/widgets/SyntaxHighlighter.cpp index ac3491410..b25ec78af 100644 --- a/src/widgets/SyntaxHighlighter.cpp +++ b/src/widgets/SyntaxHighlighter.cpp @@ -60,12 +60,12 @@ void SyntaxHighlighter::createRules() { // expression brackets rules_.emplace_back( - "(?:[\\(?:\\)\\[\\]])", + R"((?:[\(?:\)\[\]]))", theme.text[Theme::Brackets]); // math operators rules_.emplace_back( - "\\b(?:[\\+\\-\\*])\\b", + R"(\b(?:[\+\-\*])\b)", theme.text[Theme::Operator]); // registers