From e1dce66494f0e5deaf3a210ea246c89cc442739d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 28 Oct 2012 13:03:40 +0100 Subject: [PATCH] tweaked message --- lib/checkclass.cpp | 2 +- test/testclass.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/checkclass.cpp b/lib/checkclass.cpp index 129ca2985..049048e97 100644 --- a/lib/checkclass.cpp +++ b/lib/checkclass.cpp @@ -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) diff --git a/test/testclass.cpp b/test/testclass.cpp index f51b57d3d..d94050eff 100644 --- a/test/testclass.cpp +++ b/test/testclass.cpp @@ -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"