From 341ffeb61e53c48c1ac44744a832cb680840c3a7 Mon Sep 17 00:00:00 2001 From: Leandro Melo <leandro.melo@nokia.com> Date: Fri, 21 May 2010 16:30:28 +0200 Subject: [PATCH] Removing some trailing white spaces and a minor fix. --- src/plugins/texteditor/generichighlighter/dynamicrule.h | 2 +- src/plugins/texteditor/generichighlighter/rule.cpp | 3 +-- src/plugins/texteditor/generichighlighter/specificrules.h | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/plugins/texteditor/generichighlighter/dynamicrule.h b/src/plugins/texteditor/generichighlighter/dynamicrule.h index 1e116d31bd5..01e86628c17 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 1ca7349c6aa..3ad611938e4 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 7ec2552dad3..b2d08cd560f 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, -- GitLab