diff options
author | psychocrypt <psychocrypt@users.noreply.github.com> | 2017-09-29 22:06:09 +0200 |
---|---|---|
committer | psychocrypt <psychocrypt@users.noreply.github.com> | 2017-09-30 23:46:08 +0200 |
commit | 855af1cf65de1fd3795de3c9a859fd9242625a84 (patch) | |
tree | 51368c6f1d6cd401969f4beedcbcccc21d055153 /xmrstak/backend/globalStates.hpp | |
parent | 8babae3156430f5aa6b804f7c352ffb178097963 (diff) | |
download | xmr-stak-855af1cf65de1fd3795de3c9a859fd9242625a84.zip xmr-stak-855af1cf65de1fd3795de3c9a859fd9242625a84.tar.gz |
fix compile
Diffstat (limited to 'xmrstak/backend/globalStates.hpp')
-rw-r--r-- | xmrstak/backend/globalStates.hpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/xmrstak/backend/globalStates.hpp b/xmrstak/backend/globalStates.hpp index 58248bd..73ccf74 100644 --- a/xmrstak/backend/globalStates.hpp +++ b/xmrstak/backend/globalStates.hpp @@ -9,15 +9,15 @@ namespace xmrstak { -struct GlobalStates +struct globalStates { - static inline GlobalStates& inst() + static inline globalStates& inst() { - auto& env = Environment::inst(); - if(env.pGlobalStates == nullptr) - env.pGlobalStates = new GlobalStates; - return *env.pGlobalStates; + auto& env = environment::inst(); + if(env.pglobalStates == nullptr) + env.pglobalStates = new globalStates; + return *env.pglobalStates; } void switch_work(miner_work& pWork); @@ -29,7 +29,7 @@ struct GlobalStates private: - GlobalStates() : iThreadCount(0) + globalStates() : iThreadCount(0) { } |