forked from qt-creator/qt-creator
fix access to uninitialized m_core member that should have not been
there anymore
This commit is contained in:
@@ -334,10 +334,10 @@ void CPPEditor::jumpToMethod(int)
|
||||
if (! symbol)
|
||||
return;
|
||||
|
||||
m_core->editorManager()->addCurrentPositionToNavigationHistory(true);
|
||||
Core::ICore::instance()->editorManager()->addCurrentPositionToNavigationHistory(true);
|
||||
int line = symbol->line();
|
||||
gotoLine(line);
|
||||
m_core->editorManager()->addCurrentPositionToNavigationHistory();
|
||||
Core::ICore::instance()->editorManager()->addCurrentPositionToNavigationHistory();
|
||||
setFocus();
|
||||
}
|
||||
|
||||
@@ -655,7 +655,7 @@ void CPPEditor::contextMenuEvent(QContextMenuEvent *e)
|
||||
menu->removeAction(lastAction);
|
||||
|
||||
Core::ActionContainer *mcontext =
|
||||
m_core->actionManager()->actionContainer(CppEditor::Constants::M_CONTEXT);
|
||||
Core::ICore::instance()->actionManager()->actionContainer(CppEditor::Constants::M_CONTEXT);
|
||||
QMenu *contextMenu = mcontext->menu();
|
||||
|
||||
foreach (QAction *action, contextMenu->actions())
|
||||
|
||||
@@ -35,20 +35,14 @@
|
||||
#define CPPEDITOR_H
|
||||
|
||||
#include "cppeditorenums.h"
|
||||
|
||||
#include <cplusplus/CppDocument.h>
|
||||
#include <texteditor/basetexteditor.h>
|
||||
#include <QtCore/QObject>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QAction;
|
||||
class QComboBox;
|
||||
class QStringListModel;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
namespace Core {
|
||||
class ICore;
|
||||
}
|
||||
|
||||
namespace CPlusPlus {
|
||||
class OverviewModel;
|
||||
class Symbol;
|
||||
@@ -136,7 +130,6 @@ private:
|
||||
|
||||
bool openEditorAt(CPlusPlus::Symbol *symbol);
|
||||
|
||||
Core::ICore *m_core;
|
||||
CppTools::CppModelManagerInterface *m_modelManager;
|
||||
|
||||
QList<int> m_contexts;
|
||||
|
||||
Reference in New Issue
Block a user