doc: simplified the documentation for autovariables a bit
This commit is contained in:
parent
13e805f332
commit
5b5352226c
|
@ -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";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue