ProjectExplorer: Replace ProjectConfiguration::m_macroExpander

... by MacroExpanders in Build and RunConfiguration. Deploy didn't
use its own, BuildStep always composed an empty expander with
the BuildConfiguration's, uses now the BuildConfiguration's expander
directly.

Change-Id: I9de51bfc32aeb3d73f4974175e42a37807e49ac1
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2020-02-18 14:44:58 +01:00
parent e63a6744ba
commit a68aee95a1
13 changed files with 44 additions and 37 deletions

View File

@@ -322,7 +322,7 @@ public:
IDevice::ConstPtr device;
Core::Id runMode;
Utils::Icon icon;
MacroExpander *macroExpander;
const MacroExpander *macroExpander;
QPointer<RunConfiguration> runConfiguration; // Not owned. Avoid use.
QString buildKey;
QMap<Core::Id, QVariantMap> settingsData;
@@ -896,7 +896,7 @@ Kit *RunControl::kit() const
return d->kit;
}
MacroExpander *RunControl::macroExpander() const
const MacroExpander *RunControl::macroExpander() const
{
return d->macroExpander;
}