CppTools: make correspondingHeaderOrSource freely accessible

Change-Id: Ic8aba607157381359984ef1c99b2f32161daaecd
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2012-10-10 21:00:48 +02:00
parent 315a3ebdeb
commit 0df1ee1abd
4 changed files with 27 additions and 21 deletions

View File

@@ -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;
}