diff --git a/cfg/qt.cfg b/cfg/qt.cfg index cf0727f1c7e..e8183726d52 100644 --- a/cfg/qt.cfg +++ b/cfg/qt.cfg @@ -3293,7 +3293,7 @@ - + @@ -3304,7 +3304,7 @@ - + @@ -3320,7 +3320,7 @@ false - + @@ -3328,10 +3328,10 @@ false - + - + @@ -3368,10 +3368,10 @@ false - + - + @@ -3381,7 +3381,7 @@ false - + @@ -5259,7 +5259,7 @@ - + diff --git a/test/cfg/qt.cpp b/test/cfg/qt.cpp index 97c6f2d949f..e1c44398868 100644 --- a/test/cfg/qt.cpp +++ b/test/cfg/qt.cpp @@ -799,6 +799,27 @@ void constVariablePointer_QVector(QVector& qv, int* p) qv.push_back(p); // #12661 } +void constParameterPointer_QHash_insert(QHash& qh, int* k, int* v) +{ + qh.insert(k, v); // #13902 +} + +bool constParameterPointer_QHash_find(const QHash& qh, int* k) +{ + auto it = qh.find(k); + return it != qh.end(); +} + +bool constParameterPointer_QHash_contains(const QHash& qh, int* k) +{ + return qh.contains(k); +} + +int constParameterPointer_QHash_count(const QHash& qh, int* k) +{ + return qh.count(k); +} + const QString& unassignedVariable_static_QString() // #12935 { static QString qs; @@ -825,4 +846,4 @@ namespace { // cppcheck-suppress functionStatic void TestUnusedFunction::doStuff() {} // Should not warn here with unusedFunction -} \ No newline at end of file +}