diff options
author | hjk <qtc-committer@nokia.com> | 2011-07-06 17:34:45 +0200 |
---|---|---|
committer | hjk <qthjk@ovi.com> | 2011-07-08 12:39:01 +0200 |
commit | b4b9ba7e2a98ff0cd711180ca768594dba468caf (patch) | |
tree | 44167fd0643a5585b72ea544054d8f423b85cf83 /src/plugins/cpptools/cpptoolsplugin.h | |
parent | de789e357b7c86042c181ddafe5f2feb950f0686 (diff) | |
download | qt-creator-b4b9ba7e2a98ff0cd711180ca768594dba468caf.tar.gz |
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>
Diffstat (limited to 'src/plugins/cpptools/cpptoolsplugin.h')
-rw-r--r-- | src/plugins/cpptools/cpptoolsplugin.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/plugins/cpptools/cpptoolsplugin.h b/src/plugins/cpptools/cpptoolsplugin.h index a7a5dcac07..14eca4461f 100644 --- a/src/plugins/cpptools/cpptoolsplugin.h +++ b/src/plugins/cpptools/cpptoolsplugin.h @@ -64,8 +64,6 @@ class CppToolsPlugin : public ExtensionSystem::IPlugin Q_DISABLE_COPY(CppToolsPlugin) Q_OBJECT public: - static CppToolsPlugin *instance() { return m_instance; } - CppToolsPlugin(); ~CppToolsPlugin(); @@ -73,7 +71,7 @@ public: void extensionsInitialized(); ShutdownFlag aboutToShutdown(); CppModelManager *cppModelManager() { return m_modelManager; } - QString correspondingHeaderOrSource(const QString &fileName) const; + static QString correspondingHeaderOrSource(const QString &fileName); private slots: void switchHeaderSource(); @@ -85,8 +83,6 @@ private: CppModelManager *m_modelManager; QSharedPointer<CppFileSettings> m_fileSettings; CppToolsSettings *m_settings; - - static CppToolsPlugin *m_instance; }; } // namespace Internal |