forked from qt-creator/qt-creator
Utils: MacroExpander API cosmetics.
Make const-correct, add convenience function for commandline parameter expansion. Change-Id: I12c3651e4e7b8a0a9319d1dfbea676b622b1a41a Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -67,12 +67,12 @@ public:
|
||||
bc->displayName()),
|
||||
m_bc(bc)
|
||||
{}
|
||||
virtual bool resolveMacro(const QString &name, QString *ret);
|
||||
virtual bool resolveMacro(const QString &name, QString *ret) const;
|
||||
private:
|
||||
const BuildConfiguration *m_bc;
|
||||
};
|
||||
|
||||
bool BuildConfigMacroExpander::resolveMacro(const QString &name, QString *ret)
|
||||
bool BuildConfigMacroExpander::resolveMacro(const QString &name, QString *ret) const
|
||||
{
|
||||
// legacy variables
|
||||
if (name == QLatin1String("sourceDir")) {
|
||||
|
||||
Reference in New Issue
Block a user