summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/gcctoolchain.cpp
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2014-07-15 23:32:11 +0300
committerOrgad Shaneh <orgads@gmail.com>2014-07-16 12:44:01 +0200
commit71b56d2b9c3264bd481915c763aac685c1ad24d0 (patch)
tree3f3281d75d0d888e822ad107c70fed3367b3befb /src/plugins/projectexplorer/gcctoolchain.cpp
parentf8dfa03d4f3a40990b3461f64ac0a5d479fab7d8 (diff)
downloadqt-creator-71b56d2b9c3264bd481915c763aac685c1ad24d0.tar.gz
Some QString -> FileName transformation
Change-Id: I4a8a8f68bb1e52750380218793ec3029b488c01f Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Diffstat (limited to 'src/plugins/projectexplorer/gcctoolchain.cpp')
-rw-r--r--src/plugins/projectexplorer/gcctoolchain.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/plugins/projectexplorer/gcctoolchain.cpp b/src/plugins/projectexplorer/gcctoolchain.cpp
index afd6952e23..caea364733 100644
--- a/src/plugins/projectexplorer/gcctoolchain.cpp
+++ b/src/plugins/projectexplorer/gcctoolchain.cpp
@@ -596,8 +596,8 @@ QList<FileName> GccToolChain::suggestedMkspecList() const
QString GccToolChain::makeCommand(const Utils::Environment &environment) const
{
QString make = QLatin1String("make");
- QString tmp = environment.searchInPath(make);
- return tmp.isEmpty() ? make : tmp;
+ FileName tmp = environment.searchInPath(make);
+ return tmp.isEmpty() ? make : tmp.toString();
}
IOutputParser *GccToolChain::outputParser() const
@@ -809,7 +809,7 @@ QList<ToolChain *> GccToolChainFactory::autoDetectToolchains(const QString &comp
QList<ToolChain *> result;
Environment systemEnvironment = Environment::systemEnvironment();
- const FileName compilerPath = FileName::fromString(systemEnvironment.searchInPath(compiler));
+ const FileName compilerPath = systemEnvironment.searchInPath(compiler);
if (compilerPath.isEmpty())
return result;
@@ -1023,11 +1023,11 @@ QString ClangToolChain::makeCommand(const Utils::Environment &environment) const
makes << QLatin1String("make");
}
- QString tmp;
+ FileName tmp;
foreach (const QString &make, makes) {
tmp = environment.searchInPath(make);
if (!tmp.isEmpty())
- return tmp;
+ return tmp.toString();
}
return makes.first();
}
@@ -1188,11 +1188,11 @@ QString MingwToolChain::makeCommand(const Utils::Environment &environment) const
makes << QLatin1String("make");
}
- QString tmp;
+ FileName tmp;
foreach (const QString &make, makes) {
tmp = environment.searchInPath(make);
if (!tmp.isEmpty())
- return tmp;
+ return tmp.toString();
}
return makes.first();
}