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()
1118
1118
1119
1119
for (func = scope->functionList .begin (); func != scope->functionList .end (); ++func) {
1120
1120
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 )
1123
1123
continue ;
1124
1124
// use definition for check so we don't have to deal with qualification
1125
1125
if (!(Token::Match (func->retDef , " %type% &" ) && func->retDef ->str () == scope->className )) {
You can’t perform that action at this time.
0 commit comments