-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
Qt Creator 2.5.0-rc
-
None
- Create a new Qt Gui Application.
- Open main.cpp from this project.
- Select line 8:
w.show();
- Press Alt+Enter.
- Press Enter to trigger "Extract Function".
- Enter a name for the function and press Enter again.
Creator will add a function with one parameter of type MainWindow. This can't be compiled since MainWindow's copy ctor is not public.
Refactor actions should never make correct code incorrect. In this case a const reference might be used.
- is replaced by
-
QTCREATORBUG-6964 Extract function needs to be smarter for parameter arguments
-
- Closed
-