aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/git/githighlighters.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2018-09-18 15:53:35 +0300
committerOrgad Shaneh <orgads@gmail.com>2018-09-19 19:47:07 +0000
commit202d40f25636905bc80317e01399d401e0cc2419 (patch)
tree58a49c826e3ed39b93cb491c66edc3e9a9ed52fa /src/plugins/git/githighlighters.cpp
parentc83b5afa9bbb04d64ddd61cfaeca0348a15bd623 (diff)
Git: Modernize
* Use auto * Use override * Use some member initializers Change-Id: I3ca000d1c8e4d02331d58b85e68e4d771c636b29 Reviewed-by: André Hartmann <aha_1980@gmx.de>
Diffstat (limited to 'src/plugins/git/githighlighters.cpp')
-rw-r--r--src/plugins/git/githighlighters.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/git/githighlighters.cpp b/src/plugins/git/githighlighters.cpp
index d0f87a3cc9..763a3b9f79 100644
--- a/src/plugins/git/githighlighters.cpp
+++ b/src/plugins/git/githighlighters.cpp
@@ -46,7 +46,7 @@ GitSubmitHighlighter::GitSubmitHighlighter(QTextEdit * parent) :
void GitSubmitHighlighter::highlightBlock(const QString &text)
{
// figure out current state
- State state = static_cast<State>(previousBlockState());
+ auto state = static_cast<State>(previousBlockState());
if (text.trimmed().isEmpty()) {
if (state == Header)
state = Other;