From aa47d28b27a16340297c7a6d90c823404dadf68a Mon Sep 17 00:00:00 2001 From: acetone Date: Thu, 11 Aug 2022 00:53:41 +0300 Subject: [PATCH] a little bit oop --- zerostoragecaptcha.cpp | 4 ++-- zerostoragecaptcha.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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