forked from qt-creator/qt-creator
cpptools: use static CppToolsPlugin functions instead of indirect access
Saves a symbol. Change-Id: Id949799852560a3e22da9c0a858b399c6ab3d6e1 Reviewed-on: http://codereview.qt.nokia.com/1295 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
@@ -87,7 +87,7 @@ using namespace CPlusPlus;
|
||||
|
||||
enum { debug = 0 };
|
||||
|
||||
CppToolsPlugin *CppToolsPlugin::m_instance = 0;
|
||||
static CppToolsPlugin *m_instance = 0;
|
||||
|
||||
CppToolsPlugin::CppToolsPlugin() :
|
||||
m_modelManager(0),
|
||||
@@ -310,9 +310,9 @@ QString CppToolsPlugin::correspondingHeaderOrSourceI(const QString &fileName) co
|
||||
return QString();
|
||||
}
|
||||
|
||||
QString CppToolsPlugin::correspondingHeaderOrSource(const QString &fileName) const
|
||||
QString CppToolsPlugin::correspondingHeaderOrSource(const QString &fileName)
|
||||
{
|
||||
const QString rc = correspondingHeaderOrSourceI(fileName);
|
||||
const QString rc = m_instance->correspondingHeaderOrSourceI(fileName);
|
||||
if (debug)
|
||||
qDebug() << Q_FUNC_INFO << fileName << rc;
|
||||
return rc;
|
||||
|
||||
Reference in New Issue
Block a user