Remove code noise

Change-Id: I34d5df0be0a7772f9e08635afb398d6289840a92
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Vikas Pachdha
2017-03-15 17:04:47 +01:00
parent 0a56184030
commit 78f9ff036f
3 changed files with 55 additions and 56 deletions

View File

@@ -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;