Bug #11443 2007-06-24 20:10

killerbot

Insert all class methods without implementation fails const

Create a simple console app with the wiard and adjust main.cpp to this :

#include <iostream>

using namespace std;

int main()

{

cout << "Hello world!" << endl;

return 0;

}

class Test

{

public:

int GetSomething();

int GetConstSomething() const;

}

Then right click somewhere on an empty line below the class def, and choose : Insert -> All class methods without implementation

The following code is added/inserted :

/** @brief GetConstSomething

*

* @todo: document this function

*/

int Test::GetConstSomething()

{

}

/** @brief GetSomething

*

* @todo: document this function

*/

int Test::GetSomething()

{

}

As we see for GetSomething, this is correct, but for the GetConstSomething this is NOT correct, the const specifier is missing.

Category
 
Group
 
Status
Closed
Close date
2007-06-25 19:41
Assigned to
killerbot
killerbot 2007-06-25 19:41

fixed rev 4176