tweaked message

This commit is contained in:
Daniel Marjamäki 2012-10-28 13:03:40 +01:00
parent 38213f1f2f
commit e1dce66494
2 changed files with 2 additions and 2 deletions

View File

@ -264,7 +264,7 @@ void CheckClass::noCopyConstructorError(const Token *tok, const std::string &cla
// The constructor might be intentionally missing. Therefore this is not a "warning"
reportError(tok, Severity::style, "noCopyConstructor",
"'" + std::string(isStruct ? "struct" : "class") + " " + classname +
"' does not have a copy constructor which is required since the class contains a pointer to allocated memory.");
"' does not have a copy constructor which is recommended since the class contains a pointer to allocated memory.");
}
bool CheckClass::canNotCopy(const Scope *scope)

View File

@ -315,7 +315,7 @@ private:
" d=(char*)malloc(100);\n"
" }\n"
"};");
ASSERT_EQUALS("[test.cpp:1]: (style) 'class F' does not have a copy constructor which is required since the class contains a pointer to allocated memory.\n", errout.str());
ASSERT_EQUALS("[test.cpp:1]: (style) 'class F' does not have a copy constructor which is recommended since the class contains a pointer to allocated memory.\n", errout.str());
checkCopyConstructor("class F\n"
"{\n"