summaryrefslogtreecommitdiff
path: root/src/plugins/ios/simulatorcontrol.h
diff options
context:
space:
mode:
authorVikas Pachdha <vikas.pachdha@qt.io>2017-03-15 17:04:47 +0100
committerVikas Pachdha <vikas.pachdha@qt.io>2017-07-05 12:30:46 +0000
commit78f9ff036f3a4dd66179d3e88d66a0e080979cb0 (patch)
tree150e59253faec706b86dec8e5870170f90315fbb /src/plugins/ios/simulatorcontrol.h
parent0a56184030fa3d872a827ea8f8f06a2905d32b06 (diff)
downloadqt-creator-78f9ff036f3a4dd66179d3e88d66a0e080979cb0.tar.gz
Remove code noise
Change-Id: I34d5df0be0a7772f9e08635afb398d6289840a92 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/ios/simulatorcontrol.h')
-rw-r--r--src/plugins/ios/simulatorcontrol.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/ios/simulatorcontrol.h b/src/plugins/ios/simulatorcontrol.h
index 5c01eee5ec..bb46035a00 100644
--- a/src/plugins/ios/simulatorcontrol.h
+++ b/src/plugins/ios/simulatorcontrol.h
@@ -55,9 +55,9 @@ class SimulatorInfo : public SimulatorEntity
friend QDebug &operator<<(QDebug &, const SimulatorInfo &info);
public:
- bool isBooted() const { return state.compare(QStringLiteral("Booted")) == 0; }
- bool isShutdown() const { return state.compare(QStringLiteral("Shutdown")) == 0; }
+ bool isBooted() const { return state == "Booted"; }
bool isShuttingDown() const { return state == "Shutting Down"; }
+ bool isShutdown() const { return state == "Shutdown"; }
bool operator==(const SimulatorInfo &other) const;
bool operator!=(const SimulatorInfo &other) const { return !(*this == other); }
bool available;