diff --git a/cfg/qt.cfg b/cfg/qt.cfg index 06d35d3a6..55b353b76 100644 --- a/cfg/qt.cfg +++ b/cfg/qt.cfg @@ -239,7 +239,6 @@ - @@ -261,7 +260,6 @@ - @@ -273,7 +271,6 @@ - diff --git a/test/cfg/qt.cpp b/test/cfg/qt.cpp index 1d9106532..b75d8f507 100644 --- a/test/cfg/qt.cpp +++ b/test/cfg/qt.cpp @@ -9,20 +9,22 @@ class QString { public: - int size(); - char &operator[](int pos); + int size(); + char &operator[](int pos); }; -void QString1(QString s) { - for (int i = 0; i <= s.size(); ++i) { - // cppcheck-suppress stlOutOfBounds - s[i] = 'x'; - } +void QString1(QString s) +{ + for (int i = 0; i <= s.size(); ++i) { + // cppcheck-suppress stlOutOfBounds + s[i] = 'x'; + } } -int QString2() { - QString s; - // cppcheck-suppress ignoredReturnValue - // cppcheck-suppress reademptycontainer - return s.size(); +int QString2() +{ + QString s; + // cppcheck-suppress ignoredReturnValue + // cppcheck-suppress reademptycontainer + return s.size(); }