diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-23 22:00:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-24 21:08:16 +0300 |
commit | c2a7004213529c403faeb6fdcc374699aa2f53b5 (patch) | |
tree | f5701ef3412923bc0e5e033033bd52960d66acc3 /src/client.h | |
parent | e8a4474319aca4a32869fa1ebb8b5ebbd98237f6 (diff) | |
download | mv-c2a7004213529c403faeb6fdcc374699aa2f53b5.tar.gz mv-c2a7004213529c403faeb6fdcc374699aa2f53b5.tar.bz2 mv-c2a7004213529c403faeb6fdcc374699aa2f53b5.tar.xz mv-c2a7004213529c403faeb6fdcc374699aa2f53b5.zip |
improve getState/setState in Client.
Diffstat (limited to 'src/client.h')
-rw-r--r-- | src/client.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client.h b/src/client.h index a4d7a288c..73d4ae28b 100644 --- a/src/client.h +++ b/src/client.h @@ -232,11 +232,11 @@ public: int testsExec() const; - static void setState(const State state) - { instance()->mState = state; } + void setState(const State state) + { mState = state; } - static State getState() A_WARN_UNUSED - { return instance()->mState; } + State getState() A_WARN_UNUSED + { return mState; } static const std::string &getPackageDirectory() A_WARN_UNUSED { return instance()->mPackageDir; } |