diff options
author | Tobias Hunger <tobias.hunger@digia.com> | 2014-09-16 15:58:32 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@digia.com> | 2014-09-18 14:38:08 +0200 |
commit | f5d48bf39e928d643509a3c7653a54019db9bdc5 (patch) | |
tree | 2220d762efed31dcc0f7761f1361942fdd4739c9 /src/plugins/projectexplorer/customtoolchain.cpp | |
parent | e014847cdd51e94aab41c512e9fda3063972a36b (diff) |
Core: Add a basic extension for the JsExpander
This adds a "Utils" object to the Js runtime offered by the
JsExpander that adds some useful functions.
Mostly file name mangling and finding preferred extension
from the MIME type database.
Change-Id: I907dae7f295167667ac2ae81461bbff16dc98ef4
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Diffstat (limited to 'src/plugins/projectexplorer/customtoolchain.cpp')
-rw-r--r-- | src/plugins/projectexplorer/customtoolchain.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/customtoolchain.cpp b/src/plugins/projectexplorer/customtoolchain.cpp index 265b465539..e9b4561828 100644 --- a/src/plugins/projectexplorer/customtoolchain.cpp +++ b/src/plugins/projectexplorer/customtoolchain.cpp @@ -270,7 +270,8 @@ const QStringList &CustomToolChain::cxx11Flags() const void CustomToolChain::setMkspecs(const QString &specs) { - m_mkspecs = Utils::transform(specs.split(QLatin1Char(',')), &FileName::fromString); + m_mkspecs = Utils::transform(specs.split(QLatin1Char(',')), + [](QString fn) { return Utils::FileName::fromString(fn); }); } QString CustomToolChain::mkspecs() const |