diff --git a/src/plugins/texteditor/generichighlighter/dynamicrule.h b/src/plugins/texteditor/generichighlighter/dynamicrule.h index 1e116d31bd56923e35e9e13819f66c9449873bdb..01e86628c17f1be588819f93654ce956911c0b2b 100644 --- a/src/plugins/texteditor/generichighlighter/dynamicrule.h +++ b/src/plugins/texteditor/generichighlighter/dynamicrule.h @@ -53,7 +53,7 @@ public: private: virtual void doReplaceExpressions(const QStringList &captures) = 0; - bool m_active; + bool m_active; }; void updateDynamicRules(const QList<QSharedPointer<Rule> > &rules, const QStringList &captures); diff --git a/src/plugins/texteditor/generichighlighter/rule.cpp b/src/plugins/texteditor/generichighlighter/rule.cpp index 1ca7349c6aa46f3cd8c2f00e189cf48e266cc07d..3ad611938e47411ef48b5d550bf9cc8e4f2c09ca 100644 --- a/src/plugins/texteditor/generichighlighter/rule.cpp +++ b/src/plugins/texteditor/generichighlighter/rule.cpp @@ -214,8 +214,7 @@ bool Rule::matchEscapeSequence(const QString &text, if (progress->offset() < length) { const QChar &c = text.at(progress->offset()); if (c == kA || c == kB || c == kE || c == kF || c == kN || c == kR || c == kT || - c == kV || c == kV || c == kQuestion || c == kSingleQuote || c == kQuote || - c == kBackSlash) { + c == kV || c == kQuestion || c == kSingleQuote || c == kQuote || c == kBackSlash) { progress->incrementOffset(); return true; } else if (saveRestoreOffset) { diff --git a/src/plugins/texteditor/generichighlighter/specificrules.h b/src/plugins/texteditor/generichighlighter/specificrules.h index 7ec2552dad389278a0dd1916cbf702c74e23ed5b..b2d08cd560f459534288820b01b8081674c1a417 100644 --- a/src/plugins/texteditor/generichighlighter/specificrules.h +++ b/src/plugins/texteditor/generichighlighter/specificrules.h @@ -67,7 +67,7 @@ public: virtual ~Detect2CharsRule() {} void setChar(const QString &character); - void setChar1(const QString &character); + void setChar1(const QString &character); private: virtual bool doMatchSucceed(const QString &text,