-
Bug
-
Resolution: Cannot Reproduce
-
P2: Important
-
Qt Creator 2.1.0
-
None
-
Ubuntu Linux, gcc (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5
create a new class Foo.
in foo.h declare a public function
bool isBaz(int value) const;
now move cursor onto "isBaz", press Alt+Enter and let QtCreator create the implementation of the function in foo.cpp.
the helper creates the definition
bool Foo::isBaz(int value)
{
}
but without the "const"
now compile - the compiler claims that the prototype for the function does not match any in class Foo.
Add the "const" manually in foo.cpp, and it works.