Cpp: No need for accessors for simple structs

Change-Id: Ie09c1fc59dd54d2302a78cfc9769d5cda6012be7
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2012-10-10 22:09:44 +02:00
parent 52e381b8e8
commit 6dfe3207d2
7 changed files with 57 additions and 166 deletions

View File

@@ -334,8 +334,8 @@ CppDeclarableElement::CppDeclarableElement(Symbol *declaration) : CppElement()
m_icon = Icons().iconForSymbol(declaration);
Overview overview;
overview.setShowArgumentNames(true);
overview.setShowReturnTypes(true);
overview.showArgumentNames = true;
overview.showReturnTypes = true;
m_name = overview.prettyName(declaration->name());
if (declaration->enclosingScope()->isClass() ||
declaration->enclosingScope()->isNamespace() ||
@@ -469,10 +469,10 @@ CppFunction::CppFunction(Symbol *declaration) : CppDeclarableElement(declaration
// Functions marks can be found either by the main overload or signature based
// (with no argument names and no return). Help ids have no signature at all.
Overview overview;
overview.setShowDefaultArguments(false);
overview.showDefaultArguments = false;
setHelpMark(overview.prettyType(type, name()));
overview.setShowFunctionSignatures(false);
overview.showFunctionSignatures = false;
addHelpIdCandidate(overview.prettyName(declaration->name()));
}