diff --git a/lib/checkclass.cpp b/lib/checkclass.cpp index 197a0f9b6..05d1023a9 100644 --- a/lib/checkclass.cpp +++ b/lib/checkclass.cpp @@ -2692,6 +2692,6 @@ void CheckClass::safeClassRefMemberError(const Token *tok, const std::string &va reportError(tok, Severity::warning, "safeClassRefMember", "$symbol:" + varname + "\n" "Unsafe class: The const reference member '$symbol' is initialized by a const reference constructor argument. You need to be careful about lifetime issues.\n" - "Safe class checking: The const reference member '$symbol' is initialized by a const reference constructor argument. You need to be careful about lifetime issues. If you pass a local variable or temporary value in this constructor argument, be extra careful. If the argument is always some global object that is never destroyed then this is safe usage. However it would be defensive to make the member '$symbol' a non-reference variable.", + "Safe class checking: The const reference member '$symbol' is initialized by a const reference constructor argument. You need to be careful about lifetime issues. If you pass a local variable or temporary value in this constructor argument, be extra careful. If the argument is always some global object that is never destroyed then this is safe usage. However it would be defensive to make the member '$symbol' a non-reference variable or a smart pointer.", CWE(0), false); }