diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-01-10 16:51:58 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-01-24 14:50:43 +0000 |
commit | f482270432761e72b87fb368c2a379cd59b169b3 (patch) | |
tree | 11bbf09187ef36eb23c51a55e4b6e617ed4b8cfb /src/plugins/cpptools/cppqtstyleindenter.cpp | |
parent | 66488ba0b8d8fd7111e75fc53f37af4e4f51a12e (diff) |
Introduce Q_FALLTHROUGH()
Silence g++ 7.X warnings.
Change-Id: I9d06d04b496c9ec060e13e1be6f43d8fbadb1f3b
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cppqtstyleindenter.cpp')
-rw-r--r-- | src/plugins/cpptools/cppqtstyleindenter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/cpptools/cppqtstyleindenter.cpp b/src/plugins/cpptools/cppqtstyleindenter.cpp index 8877d5b49c9..8f5993d2bfa 100644 --- a/src/plugins/cpptools/cppqtstyleindenter.cpp +++ b/src/plugins/cpptools/cppqtstyleindenter.cpp @@ -29,6 +29,8 @@ #include "cpptoolssettings.h" #include "cppcodestylepreferences.h" +#include <utils/qtcfallthrough.h> + #include <QChar> #include <QTextDocument> #include <QTextBlock> @@ -79,7 +81,7 @@ static bool isElectricInLine(const QChar ch, const QString &text) return true; } - // fall-through + Q_FALLTHROUGH(); // lines that start with : might have a constructor initializer list case '<': case '>': { |