diff options
author | hjk <qtc-committer@nokia.com> | 2010-06-25 17:37:59 +0200 |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2010-06-25 17:38:25 +0200 |
commit | 2f5f358ff420bf4fa2fdc09d105463bd1e0e792f (patch) | |
tree | a826357ccde587a1cce12749ff5fbb0ae8ac6f79 /src/plugins/cpptools/cpptoolsplugin.cpp | |
parent | 2bdf10ce1077fc21f6a3835de1f103f87c75eebf (diff) | |
download | qt-creator-2f5f358ff420bf4fa2fdc09d105463bd1e0e792f.tar.gz |
Core::Context: compile hot fix for Windows.
Diffstat (limited to 'src/plugins/cpptools/cpptoolsplugin.cpp')
-rw-r--r-- | src/plugins/cpptools/cpptoolsplugin.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/plugins/cpptools/cpptoolsplugin.cpp b/src/plugins/cpptools/cpptoolsplugin.cpp index b06cb5743a..dcff150363 100644 --- a/src/plugins/cpptools/cpptoolsplugin.cpp +++ b/src/plugins/cpptools/cpptoolsplugin.cpp @@ -43,7 +43,6 @@ #include <coreplugin/icore.h> #include <coreplugin/mimedatabase.h> #include <coreplugin/coreconstants.h> -#include <coreplugin/uniqueidmanager.h> #include <coreplugin/actionmanager/actionmanager.h> #include <coreplugin/actionmanager/actioncontainer.h> #include <coreplugin/actionmanager/command.h> @@ -80,7 +79,6 @@ enum { debug = 0 }; CppToolsPlugin *CppToolsPlugin::m_instance = 0; CppToolsPlugin::CppToolsPlugin() : - m_context(-1), m_modelManager(0), m_fileSettings(new CppFileSettings) { @@ -131,8 +129,7 @@ bool CppToolsPlugin::initialize(const QStringList &arguments, QString *error) mtools->addMenu(mcpptools); // Actions - m_context = core->uniqueIDManager()->uniqueIdentifier(CppEditor::Constants::C_CPPEDITOR); - Core::Context context(m_context); + Core::Context context(CppEditor::Constants::C_CPPEDITOR); QAction *switchAction = new QAction(tr("Switch Header/Source"), this); Core::Command *command = am->registerAction(switchAction, Constants::SWITCH_HEADER_SOURCE, context); |