This commit is contained in:
Dmitry-Me 2019-11-01 18:39:53 +03:00
parent 4f927ea6c7
commit f2cf71f6e9
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ void CheckClass::constructors()
if (classNameUsed) if (classNameUsed)
operatorEqVarError(func.token, scope->className, var.name(), inconclusive); operatorEqVarError(func.token, scope->className, var.name(), inconclusive);
} else if (func.access != AccessControl::Private || mSettings->standards.cpp >= Standards::CPP11) { } else if (func.access != AccessControl::Private || mSettings->standards.cpp >= Standards::CPP11) {
// If constructor is not in scope then we maybe using a oonstructor from a different template specialization // If constructor is not in scope then we maybe using a constructor from a different template specialization
if (!precedes(scope->bodyStart, func.tokenDef)) if (!precedes(scope->bodyStart, func.tokenDef))
continue; continue;
const Scope *varType = var.typeScope(); const Scope *varType = var.typeScope();