-
Bug
-
Resolution: Duplicate
-
P3: Somewhat important
-
None
-
Qt Creator 2.5.0-beta, Qt Creator 2.8.0-beta
-
None
Consider the following code:
QString a;
a = "a";
Extracting the second line, creates a function:
void foo(QString a) {
a = "a";
}
which due to the value passing only modifies a local variabling. Passing by reference or pointer would be a better choice.
- duplicates
-
QTCREATORBUG-13240 Extract Function should check if the parameter is used after the function call
-
- Closed
-
- replaces
-
QTCREATORBUG-7125 "Extract Function" refactoring may cause compile error
-
- Closed
-