Fixed #2268 ([GUI] Generic class name is shown for 'Message' while correct one for 'Summary')
This commit is contained in:
parent
523a4a6f05
commit
1a3175741f
|
@ -167,7 +167,8 @@ void CheckClass::noConstructorError(const Token *tok, const std::string &classna
|
||||||
reportError(tok, Severity::style, "noConstructor",
|
reportError(tok, Severity::style, "noConstructor",
|
||||||
"The " + std::string(isStruct ? "struct" : "class") + " '" + classname +
|
"The " + std::string(isStruct ? "struct" : "class") + " '" + classname +
|
||||||
"' does not have a constructor.\n"
|
"' 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.");
|
"The attributes are not initialized which may cause bugs or undefined behavior.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue