forked from qt-creator/qt-creator
MacroExpander: Allow registering local expansions
This allows a MacroExpander also to describe an expansion it can do which was restricted to the global VariableManager only. The global is now just a thin (unneeded) wrapper about new "standard" functionality. Change-Id: Ida7ca70cf3d319eae4220ea8d12f3dd1c0d4042c Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -120,8 +120,7 @@ MainWindow::MainWindow() :
|
||||
m_editorManager(0),
|
||||
m_externalToolManager(0),
|
||||
m_progressManager(new ProgressManagerPrivate),
|
||||
m_variableManager(new VariableManager),
|
||||
m_jsExpander(new JsExpander), // must be initialized after the VariableManager
|
||||
m_jsExpander(new JsExpander),
|
||||
m_vcsManager(new VcsManager),
|
||||
m_statusBarManager(0),
|
||||
m_modeManager(0),
|
||||
@@ -305,8 +304,6 @@ MainWindow::~MainWindow()
|
||||
|
||||
delete m_helpManager;
|
||||
m_helpManager = 0;
|
||||
delete m_variableManager;
|
||||
m_variableManager = 0;
|
||||
delete m_jsExpander;
|
||||
m_jsExpander = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user