Hi,
I have a problem with the 'Move implementation to source file' refactoring:
--- mytest_testclass.h ---
namespace MYTEST {
class TestClass {
int testFunction1();
int testfunction2() {
return 2;
}
};
}
--- mytest_testclass.cpp ---
#include "mytest_testclass.h"
namespace MYTEST {
class SomeForwardDeclaration;
}
using namespace MYTEST;
int TestClass::testFunction1() {
return 1;
}
If I now apply 'move implementation' on testFunction2, then this is the result:
--- mytest_testclass.cpp ---
#include "mytest_testclass.h"
namespace MYTEST {
class SomeForwardDeclaration;
int TestClass::testfunction2() {
return 2;
}
}
using namespace MYTEST;
int TestClass::testFunction1() {
return 1;
}
and not
--- mytest_testclass.cpp ---
#include "mytest_testclass.h"
namespace MYTEST {
class SomeForwardDeclaration;
}
using namespace MYTEST;
int MYTEST::TestClass::testFunction1() {
return 1;
}
I suppose this could be desired functionality, but this makes this (rather handy) refactoring unusable for me.
regards,
eli