@@ -35,7 +35,7 @@ class Function;
3535class CPPCHECKLIB CheckClass : public Check {
3636public:
3737 /* * @brief This constructor is used when registering the CheckClass */
38- CheckClass () : Check(myName()), symbolDatabase(NULL ) {
38+ CheckClass () : Check(myName()), symbolDatabase(nullptr ) {
3939 }
4040
4141 /* * @brief This constructor is used when running checks. */
@@ -169,33 +169,33 @@ class CPPCHECKLIB CheckClass : public Check {
169169 void duplInheritedMembersError (const Token* tok1, const Token* tok2, const std::string &derivedname, const std::string &basename, const std::string &variablename, bool derivedIsStruct, bool baseIsStruct);
170170
171171 void getErrorMessages (ErrorLogger *errorLogger, const Settings *settings) const {
172- CheckClass c (0 , settings, errorLogger);
173- c.noConstructorError (0 , " classname" , false );
174- c.noExplicitConstructorError (0 , " classname" , false );
175- // c.copyConstructorMallocError(0 , 0, "var");
176- c.copyConstructorShallowCopyError (0 , " var" );
177- c.noCopyConstructorError (0 , " class" , false );
178- c.uninitVarError (0 , " classname" , " varname" , false );
179- c.operatorEqVarError (0 , " classname" , " " , false );
180- c.unusedPrivateFunctionError (0 , " classname" , " funcname" );
181- c.memsetError (0 , " memfunc" , " classname" , " class" );
182- c.memsetErrorReference (0 , " memfunc" , " class" );
183- c.memsetErrorFloat (0 , " class" );
184- c.mallocOnClassWarning (0 , " malloc" , 0 );
185- c.mallocOnClassError (0 , " malloc" , 0 , " std::string" );
186- c.operatorEqReturnError (0 , " class" );
187- c.virtualDestructorError (0 , " Base" , " Derived" , false );
188- c.thisSubtractionError (0 );
189- c.operatorEqRetRefThisError (0 );
190- c.operatorEqMissingReturnStatementError (0 , true );
191- c.operatorEqShouldBeLeftUnimplementedError (0 );
192- c.operatorEqToSelfError (0 );
193- c.checkConstError (0 , " class" , " function" , false );
194- c.checkConstError (0 , " class" , " function" , true );
195- c.initializerListError (0 , 0 , " class" , " variable" );
196- c.suggestInitializationList (0 , " variable" );
197- c.selfInitializationError (0 , " var" );
198- c.duplInheritedMembersError (0 , 0 , " class" , " class" , " variable" , false , false );
172+ CheckClass c (nullptr , settings, errorLogger);
173+ c.noConstructorError (nullptr , " classname" , false );
174+ c.noExplicitConstructorError (nullptr , " classname" , false );
175+ // c.copyConstructorMallocError(nullptr , 0, "var");
176+ c.copyConstructorShallowCopyError (nullptr , " var" );
177+ c.noCopyConstructorError (nullptr , " class" , false );
178+ c.uninitVarError (nullptr , " classname" , " varname" , false );
179+ c.operatorEqVarError (nullptr , " classname" , " " , false );
180+ c.unusedPrivateFunctionError (nullptr , " classname" , " funcname" );
181+ c.memsetError (nullptr , " memfunc" , " classname" , " class" );
182+ c.memsetErrorReference (nullptr , " memfunc" , " class" );
183+ c.memsetErrorFloat (nullptr , " class" );
184+ c.mallocOnClassWarning (nullptr , " malloc" , 0 );
185+ c.mallocOnClassError (nullptr , " malloc" , 0 , " std::string" );
186+ c.operatorEqReturnError (nullptr , " class" );
187+ c.virtualDestructorError (nullptr , " Base" , " Derived" , false );
188+ c.thisSubtractionError (nullptr );
189+ c.operatorEqRetRefThisError (nullptr );
190+ c.operatorEqMissingReturnStatementError (nullptr , true );
191+ c.operatorEqShouldBeLeftUnimplementedError (nullptr );
192+ c.operatorEqToSelfError (nullptr );
193+ c.checkConstError (nullptr , " class" , " function" , false );
194+ c.checkConstError (nullptr , " class" , " function" , true );
195+ c.initializerListError (nullptr , 0 , " class" , " variable" );
196+ c.suggestInitializationList (nullptr , " variable" );
197+ c.selfInitializationError (nullptr , " var" );
198+ c.duplInheritedMembersError (nullptr , 0 , " class" , " class" , " variable" , false , false );
199199 }
200200
201201 static std::string myName () {
0 commit comments