From 2f5f358ff420bf4fa2fdc09d105463bd1e0e792f Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 25 Jun 2010 17:37:59 +0200 Subject: Core::Context: compile hot fix for Windows. --- src/plugins/cpptools/cpptoolsplugin.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/plugins/cpptools/cpptoolsplugin.cpp') 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 #include #include -#include #include #include #include @@ -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); -- cgit v1.2.1