diff --git a/lib/checkclass.h b/lib/checkclass.h index f507c75c8..9fa78b75a 100644 --- a/lib/checkclass.h +++ b/lib/checkclass.h @@ -195,8 +195,9 @@ private: "* Are all variables initialized by the constructors?\n" "* [[CheckMemset|Warn if memset, memcpy etc are used on a class]]\n" "* If it's a base class, check that the destructor is virtual\n" - "* The operator= should return a constant reference to itself\n" "* Are there unused private functions\n" + "* 'operator=' should return reference to self\n" + "* 'operator=' should check for assignment to self\n" "* Constness for member functions\n"; } }; diff --git a/lib/checkstl.h b/lib/checkstl.h index 44f60a47c..1c7e08689 100644 --- a/lib/checkstl.h +++ b/lib/checkstl.h @@ -155,7 +155,7 @@ private: "* dereferencing an erased iterator\n" "* for vectors: using iterator/pointer after push_back has been used\n" "* dangerous usage of find\n" - "* optimisation: using empty() instead of size()"; + "* optimisation: use empty() instead of size() to guarantee fast code\n"; } bool isStlContainer(const Token *tok);