Commit abcdd7fe authored by Ralf Habacker's avatar Ralf Habacker
Browse files

In codegenerator use term 'value' instead of 'new_var' for setter/getter...

In codegenerator use term 'value' instead of 'new_var' for setter/getter variable name, which looks more descriptive
parent cfb5192b
......@@ -932,7 +932,7 @@ void CppWriter::writeSingleAttributeAccessorMethods(
QString className = fixTypeName(fieldClassName);
QString indnt = indent();
QString varName = QLatin1String("new_var");
QString varName = QLatin1String("value");
QString fullVarName = varName;
int i = className.indexOf(QLatin1Char('['));
......@@ -948,11 +948,11 @@ void CppWriter::writeSingleAttributeAccessorMethods(
// set method
if (change == Uml::Changeability::Changeable) {
writeDocumentation(QLatin1String("Set the value of ") + fieldVarName, description, policyExt()->getDocToolTag() + QLatin1String("param new_var the new value of ") + fieldVarName, stream);
writeDocumentation(QLatin1String("Set the value of ") + fieldVarName, description, policyExt()->getDocToolTag() + QString(QLatin1String("param %1 the new value of ")).arg(varName) + fieldVarName, stream);
stream << indnt << "void ";
if (!isHeaderMethod)
stream << className_ << "::";
stream << "set" << fldName << "(" << className << " " << fullVarName << ")";
stream << "set" << setFldName << "(" << className << " " << fullVarName << ")";
if (writeMethodBody) {
stream << m_endl << indnt << "{" << m_endl;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment