doc: simplified the documentation for autovariables a bit

This commit is contained in:
Daniel Marjamäki 2009-06-21 21:03:21 +02:00
parent 13e805f332
commit 5b5352226c
1 changed files with 3 additions and 4 deletions

View File

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