nabulke
Starting Member
1 Posts |
Posted - Sep 21 2009 : 07:36:45 AM
|
Hello,
edit: this problem is probably related to: http://www.visualassist.com/forum/topic.asp?whichpage=1&TOPIC_ID=8686#34666 if yes, I apologize for the double post.
I have the following problem using the extract method refactoring with the 'extract to source' option checked:
if there is no newline after the last closing bracket in the C++ cpp file, the function declaration will be inserted INSIDE the last function of that cpp. To clarify things I attach an example showing the file before and after the refactoring. This happens not with all cpp files, but with most (those that use namespaces in .hpp, not sure yet). The resulting source code is not compilable.
Before refactoring: [....] BOOL CBild::IstFehlerortSuchergebnis(const CString& strFehlerortDBID) const { return m_pMapFESGefunden->Lookup(strFehlerortDBID, strValue); }<End of file here>
After refactoring: [....] BOOL CBild::IstFehlerortSuchergebnis(const CString& strFehlerortDBID) const { return m_pMapFESGefunden->Lookup(strFehlerortDBID, strValue);
// INSERTS DECLARATION HERE, INSIDE LAST METHOD! BOOL MyMethod( const CString& strFehlerortDBID ); }
// DEFINITION AT END OF FILE BOOL CBild::MyMethod( const CString& strFehlerortDBID ) { ... return TRUE; }<End of file here>
Thanks in advance for any help
Horst
my setup: - Visual Assist X 10.5.1727.0 - Visual Studio 2008 English - Language C++ |
Edited by - nabulke on Sep 21 2009 10:02:25 AM |
|