diff --git a/cfg/qt.cfg b/cfg/qt.cfg index 17895b64f31..bcc24ae4b1b 100644 --- a/cfg/qt.cfg +++ b/cfg/qt.cfg @@ -5160,6 +5160,22 @@ + + + + + + + + + + + + + + + + @@ -5183,6 +5199,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + QApplication diff --git a/cfg/std.cfg b/cfg/std.cfg index 6383963b616..11ae259ed6c 100644 --- a/cfg/std.cfg +++ b/cfg/std.cfg @@ -8782,7 +8782,6 @@ initializer list (7) string& replace (const_iterator i1, const_iterator i2, init - diff --git a/test/cfg/qt.cpp b/test/cfg/qt.cpp index c09d037ee3a..1c4556051a9 100644 --- a/test/cfg/qt.cpp +++ b/test/cfg/qt.cpp @@ -14,9 +14,12 @@ #include #include #include +#include +#include +#include +#include #include #include -#include #include #include #include @@ -27,6 +30,8 @@ #include #include +#include + void unreadVariable_QPoint(const QPoint &s) { // cppcheck-suppress unreadVariable @@ -713,3 +718,17 @@ bool knownConditionTrueFalse_QString_count(const QString& s) // #11036 return false; return true; } + +void unusedVariable_qtContainers() // #10689 +{ + // cppcheck-suppress unusedVariable + QMap qm; + // cppcheck-suppress unusedVariable + QSet qs; + // cppcheck-suppress unusedVariable + QMultiMap qmm; + // cppcheck-suppress unusedVariable + QQueue qq; + // cppcheck-suppress unusedVariable + QLatin1String ql1s; +} \ No newline at end of file