Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit f654714e authored by Ralf Habacker's avatar Ralf Habacker

Fix bug not generating setter for static class attributes using old c++ codegenerator (CID 71454).

This bug has been reported by Coverity CID 71454: Logically dead code (DEADCODE)

Execution cannot reach this statement: (stream << this->className_....
parent 7835b6b2
......@@ -923,7 +923,7 @@ void CppWriter::writeSingleAttributeAccessorMethods(
QString indnt = indent();
// set method
if (change == Uml::Changeability::Changeable && !isStatic) {
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);
stream << indnt << "void ";
if (!isHeaderMethod)
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