Small refactoring

This commit is contained in:
Daniel Marjamäki 2020-11-09 19:30:05 +01:00
parent 9d70926fcd
commit 0ac4de2a5e
1 changed files with 1 additions and 1 deletions

View File

@ -572,7 +572,7 @@ Scope *clangimport::AstNode::createScope(TokenList *tokenList, Scope::ScopeType
scope->classDef = def;
scope->check = nestedIn->check;
scope->bodyStart = addtoken(tokenList, "{");
mData->scopeAccessControl[scope] = (scopeType == Scope::ScopeType::eClass) ? AccessControl::Private : AccessControl::Public;
mData->scopeAccessControl[scope] = scope->defaultAccess();
if (!children2.empty()) {
tokenList->back()->scope(scope);
for (AstNodePtr astNode: children2) {