-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 2.5.0-beta, Qt Creator 2.8.0-beta, Qt Creator 4.7.1
-
None
-
Ubuntu linux x86_64
-
049291504d493ee8126f7da723068c3d3c9c298e (qt-creator/qt-creator/4.8)
Nested class name is missing while extracting function in the following situation:
// header file contents namespace NS { class Outer { class Inner { void Func(); bool Cond; int i; }; }; } // source file contents namespace NS { void Outer::Inner::Func() { if (Cond) { i = 1; // (*) The only line to extract to the new function } } }
Extraction of line
leads to generation the following wrong code (placed in namespace NS in source file):
void Inner::Func2()
{
i = 1;
}
'Outer::' class prefix is missing