forked from qt-creator/qt-creator
		
	CppTools: make correspondingHeaderOrSource freely accessible
Change-Id: Ic8aba607157381359984ef1c99b2f32161daaecd Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
		@@ -27,7 +27,7 @@
 | 
			
		||||
**
 | 
			
		||||
****************************************************************************/
 | 
			
		||||
 | 
			
		||||
#include "cpptoolsplugin.h"
 | 
			
		||||
#include "cpptoolsreuse.h"
 | 
			
		||||
#include "cpprefactoringchanges.h"
 | 
			
		||||
#include "insertionpointlocator.h"
 | 
			
		||||
#include "symbolfinder.h"
 | 
			
		||||
@@ -578,7 +578,7 @@ QList<InsertionLocation> InsertionPointLocator::methodDefinition(
 | 
			
		||||
                                                   declaration->fileNameLength());
 | 
			
		||||
    QString target = declFileName;
 | 
			
		||||
    if (!isSourceFile(declFileName)) {
 | 
			
		||||
        QString candidate = Internal::CppToolsPlugin::correspondingHeaderOrSource(declFileName);
 | 
			
		||||
        QString candidate = CppTools::correspondingHeaderOrSource(declFileName);
 | 
			
		||||
        if (!candidate.isEmpty())
 | 
			
		||||
            target = candidate;
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user