forked from qt-creator/qt-creator
MacroExpander: Fall back to global expander
... and use that all over the place. Change-Id: Ie6e0ed0f0d9eaba9b4466761e6b455f33a905086 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
|
||||
#include <utils/environment.h>
|
||||
|
||||
namespace Utils { class AbstractMacroExpander; }
|
||||
namespace Utils { class MacroExpander; }
|
||||
|
||||
namespace ProjectExplorer {
|
||||
|
||||
@@ -57,8 +57,8 @@ public:
|
||||
void setEnvironment(const Utils::Environment &env) { m_environment = env; }
|
||||
Utils::Environment environment() const { return m_environment; }
|
||||
|
||||
void setMacroExpander(Utils::AbstractMacroExpander *mx) { m_macroExpander = mx; }
|
||||
Utils::AbstractMacroExpander *macroExpander() const { return m_macroExpander; }
|
||||
void setMacroExpander(Utils::MacroExpander *mx) { m_macroExpander = mx; }
|
||||
Utils::MacroExpander *macroExpander() const { return m_macroExpander; }
|
||||
|
||||
/// Get the fully expanded working directory:
|
||||
QString effectiveWorkingDirectory() const;
|
||||
@@ -81,7 +81,7 @@ private:
|
||||
QString m_command;
|
||||
QString m_arguments;
|
||||
Utils::Environment m_environment;
|
||||
Utils::AbstractMacroExpander *m_macroExpander;
|
||||
Utils::MacroExpander *m_macroExpander;
|
||||
|
||||
mutable QString m_effectiveWorkingDirectory;
|
||||
mutable QString m_effectiveCommand;
|
||||
|
||||
Reference in New Issue
Block a user