aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/git/githighlighters.cpp
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@qt.io>2022-10-06 14:05:43 +0200
committerhjk <hjk@qt.io>2022-10-06 12:32:58 +0000
commit928a7d2087406abef2b076705ba4aa51b8ef3c92 (patch)
treedcceff7a811fde4771966d874b14764e611ba7a0 /src/plugins/git/githighlighters.cpp
parentb8efc2f14de4859409fef57f58e2b813e72bc510 (diff)
Git: Convert to Tr::tr
Change-Id: I7fb1753109a9263c70c01713f5f4895db6b73662 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/plugins/git/githighlighters.cpp')
-rw-r--r--src/plugins/git/githighlighters.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/plugins/git/githighlighters.cpp b/src/plugins/git/githighlighters.cpp
index 3b98221741..a3b7547f08 100644
--- a/src/plugins/git/githighlighters.cpp
+++ b/src/plugins/git/githighlighters.cpp
@@ -8,10 +8,9 @@
#include "gitconstants.h"
#include "githighlighters.h"
-namespace Git {
-namespace Internal {
+namespace Git::Internal {
-static const char CHANGE_PATTERN[] = "\\b[a-f0-9]{7,40}\\b";
+const char CHANGE_PATTERN[] = "\\b[a-f0-9]{7,40}\\b";
GitSubmitHighlighter::GitSubmitHighlighter(QChar commentChar, QTextEdit * parent) :
TextEditor::SyntaxHighlighter(parent),
@@ -159,5 +158,4 @@ void GitRebaseHighlighter::highlightBlock(const QString &text)
formatSpaces(text);
}
-} // namespace Internal
-} // namespace Git
+} // Git::Internal