File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1118,8 +1118,8 @@ void CheckClass::operatorEq()
11181118
11191119 for (func = scope->functionList .begin (); func != scope->functionList .end (); ++func) {
11201120 if (func->type == Function::eOperatorEqual && func->access != Private) {
1121- // skip if there's =delete in the declaration - cannot be called anyway
1122- if (func->tokenDef && func-> tokenDef -> next () && Token::Match (func-> tokenDef -> next ()-> link (), " ) const| = delete " ) )
1121+ // skip "deleted" functions - cannot be called anyway
1122+ if (func->isDelete )
11231123 continue ;
11241124 // use definition for check so we don't have to deal with qualification
11251125 if (!(Token::Match (func->retDef , " %type% &" ) && func->retDef ->str () == scope->className )) {
You can’t perform that action at this time.
0 commit comments