diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2014-07-15 23:32:11 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2014-07-16 12:44:01 +0200 |
commit | 71b56d2b9c3264bd481915c763aac685c1ad24d0 (patch) | |
tree | 3f3281d75d0d888e822ad107c70fed3367b3befb /src/plugins/projectexplorer/gcctoolchain.cpp | |
parent | f8dfa03d4f3a40990b3461f64ac0a5d479fab7d8 (diff) | |
download | qt-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.cpp | 14 |
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(); } |