diff --git a/src/checkautovariables.h b/src/checkautovariables.h index ba29fbf3d..a96f04878 100644 --- a/src/checkautovariables.h +++ b/src/checkautovariables.h @@ -78,11 +78,10 @@ private: std::string classInfo() const { - return "Auto variables are deallocated when they go out of scope. " - "A pointer to an auto variable is therefore only valid as long as the auto variable is in scope.\n" + return "A pointer to a variable is only valid as long as the variable is in scope.\n" "Check:\n" - " * returning a pointer to auto variable\n" - " * assignment of an auto-variable to an effective parameter of a function\n"; + " * returning a pointer to variable\n" + " * assigning address of an variable to an effective parameter of a function\n"; } };