File tree 1 file changed +12
-10
lines changed
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 {
813
813
Q_OBJECT
814
814
};
815
815
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
+ };
821
822
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
+ }
826
827
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