diff --git a/zerostoragecaptcha.cpp b/zerostoragecaptcha.cpp index 1dab712..a7ad086 100644 --- a/zerostoragecaptcha.cpp +++ b/zerostoragecaptcha.cpp @@ -297,11 +297,11 @@ void TimeToken::init() m_updater->start(); } -std::atomic IdCounter::counter = 0; +std::atomic IdCounter::m_counter = 0; size_t IdCounter::get() { - size_t value = ++counter; + size_t value = ++m_counter; if (value == 0) { value++; diff --git a/zerostoragecaptcha.h b/zerostoragecaptcha.h index 9be714b..1e8deb1 100644 --- a/zerostoragecaptcha.h +++ b/zerostoragecaptcha.h @@ -137,7 +137,7 @@ public: static size_t get(); private: - static std::atomic counter; + static std::atomic m_counter; }; class TokenManager