Skip to content

Commit d0ed8f3

Browse files
committed
Nits 3
1 parent 5132080 commit d0ed8f3

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

test/cfg/qt.cpp

+12-10
Original file line numberDiff line numberDiff line change
@@ -813,15 +813,17 @@ struct DQObject_missingOverride : BQObject_missingOverride {
813813
Q_OBJECT
814814
};
815815

816-
class Foo { // #13236
817-
Foo();
818-
// cppcheck-suppress functionStatic
819-
void dostuff();
820-
};
816+
namespace {
817+
class Foo { // #13236
818+
Foo();
819+
// cppcheck-suppress functionStatic
820+
void doStuff();
821+
};
821822

822-
Foo::Foo() {
823-
// cppcheck-suppress [checkLibraryFunction, checkLibraryNoReturn]
824-
connect(a, SIGNAL(dostuff()), this, SLOT(dostuff()));
825-
}
823+
Foo::Foo() {
824+
// cppcheck-suppress [checkLibraryFunction, checkLibraryNoReturn]
825+
connect(a, SIGNAL(doStuff()), this, SLOT(doStuff()));
826+
}
826827

827-
void Foo::dostuff() {} // Should not warn here with unusedFunction
828+
void Foo::doStuff() {} // Should not warn here with unusedFunction
829+
}

0 commit comments

Comments
 (0)