diff --git a/lib/checkclass.cpp b/lib/checkclass.cpp index a1904ff8f..ada77cf26 100644 --- a/lib/checkclass.cpp +++ b/lib/checkclass.cpp @@ -167,7 +167,8 @@ void CheckClass::noConstructorError(const Token *tok, const std::string &classna reportError(tok, Severity::style, "noConstructor", "The " + std::string(isStruct ? "struct" : "class") + " '" + classname + "' does not have a constructor.\n" - "The class 'classname' does not have a constructor but it has attributes. " + "The " + std::string(isStruct ? "struct" : "class") + " '" + classname + + " 'does not have a constructor but it has attributes. " "The attributes are not initialized which may cause bugs or undefined behavior."); }