From 1a3175741fe1ea50c50e144151c6b106ce928968 Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Wed, 1 Dec 2010 17:55:22 +0200 Subject: [PATCH] Fixed #2268 ([GUI] Generic class name is shown for 'Message' while correct one for 'Summary') --- lib/checkclass.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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."); }