Hi to all.
I probably found a small bug in this release.
The "Insert" => "All class methods without implementation" functionality of the editor removes the spaces between the parameters names and their types.
Step to reproduce :
- Create a new wxWidgets project (frame based) : let's name it wxCBTest
- Open the frame's cpp file in the editor, and remove one of the events handlers (for example, remove all the implementation of wxCBTestFrame::OnClose) but don't touch the declaration.
- Press [ Ctrl ] + [ Alt ] + [ S ] to save all the files (or press the "Save all files" toolbar button)
- Right click in an empty line in the editor (witch should always be open on the frame's cpp file)
- Select Insert => All class methods without implementation
- The removed function should be present in the list : select it (and unselect others things if any)
The declaration of the function is
void OnClose(wxCloseEvent& event); (note the space between
wxCloseEvent& and
event).
In the cpp file, the inserted method is now
void OnClose(wxCloseEvent&event); (the space has been removed).
I've made some test with the previous nightly (r10376) but the bug wasn't present.
I also noticed that an old bug is still present : if in a class you have a method witch returns a pointer or a reference (for example
wxString& GetAppPath()), the automatically inserted function with the
Insert =>
All class methods without implementation doesn't have the correct type (the
* or
& sign is removed and the inserted text will be
wxString wxCBTestFrame::GetAppPath()).
Regards
Xav'.