File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232#include < QPointF>
3333#include < QRegion>
3434#include < QTransform>
35+ #include < QDir>
3536
3637// TODO: this is actually avilable via Core5Compat but I could not get it to work with pkg-config
3738#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
@@ -54,6 +55,27 @@ int ignoredReturnValue_QSize_width(const QSize &s)
5455 return s.width ();
5556}
5657
58+
59+ void ignoredReturnValue_QDir (const QString& dirname)
60+ {
61+ // cppcheck-suppress ignoredReturnValue
62+ QDir::exists (dirname);
63+
64+ // cppcheck-suppress ignoredReturnValue
65+ QDir::mkdir (dirname);
66+
67+ QDir dir (dirname);
68+ // cppcheck-suppress ignoredReturnValue
69+ dir.count ();
70+
71+ // cppcheck-suppress ignoredReturnValue
72+ dir.filePath (" abc" );
73+
74+ // cppcheck-suppress ignoredReturnValue
75+ dir.entryList ();
76+ }
77+
78+
5779void unusedVariable_QTransform ()
5880{
5981 // cppcheck-suppress unusedVariable
You can’t perform that action at this time.
0 commit comments