diff options
| author | hjk <hjk121@nokiamail.com> | 2014-10-24 13:15:54 +0200 |
|---|---|---|
| committer | hjk <hjk121@nokiamail.com> | 2014-11-03 10:23:09 +0100 |
| commit | 9477ed0a3fce682a15a3cc6bddb801f3c10495a6 (patch) | |
| tree | fb0832abcb05054046ed3006ab501db0e61e588a /src/plugins/ios/iosdebugsupport.cpp | |
| parent | 36f94d36619df05e3f383e344fd1eab12c695262 (diff) | |
| download | qt-creator-9477ed0a3fce682a15a3cc6bddb801f3c10495a6.tar.gz | |
Introduce and use FileName::exists()
This can use the faster route through QFileInfo::exist now.
Change-Id: Idb41b5d5185d7f02eacba498fb01f483d95e8d57
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Diffstat (limited to 'src/plugins/ios/iosdebugsupport.cpp')
| -rw-r--r-- | src/plugins/ios/iosdebugsupport.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/ios/iosdebugsupport.cpp b/src/plugins/ios/iosdebugsupport.cpp index 37e1a73562..98fbdeeca5 100644 --- a/src/plugins/ios/iosdebugsupport.cpp +++ b/src/plugins/ios/iosdebugsupport.cpp @@ -136,7 +136,7 @@ RunControl *IosDebugSupport::createDebugRunControl(IosRunConfiguration *runConfi Utils::FileName xcodeInfo = IosConfigurations::developerPath().parentDir() .appendPath(QLatin1String("Info.plist")); bool buggyLldb = false; - if (xcodeInfo.toFileInfo().exists()) { + if (xcodeInfo.exists()) { QSettings settings(xcodeInfo.toString(), QSettings::NativeFormat); QStringList version = settings.value(QLatin1String("CFBundleShortVersionString")).toString() .split(QLatin1Char('.')); @@ -147,7 +147,7 @@ RunControl *IosDebugSupport::createDebugRunControl(IosRunConfiguration *runConfi bundlePath.chop(4); Utils::FileName dsymPath = Utils::FileName::fromString( bundlePath.append(QLatin1String(".dSYM"))); - if (!dsymPath.toFileInfo().exists()) { + if (!dsymPath.exists()) { if (buggyLldb) TaskHub::addTask(Task::Warning, tr("Debugging with Xcode 5.0.x can be unreliable without a dSYM. " |
