File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed
Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff 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+ }
You can’t perform that action at this time.
0 commit comments