From 1b5ae86f7b4f5ec6a9fc72e3e0b79368e04284c6 Mon Sep 17 00:00:00 2001 From: HJfod <60038575+HJfod@users.noreply.github.com> Date: Tue, 13 Aug 2024 13:42:24 +0300 Subject: [PATCH] fix s_idCounter missing definition --- loader/src/utils/web.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/loader/src/utils/web.cpp b/loader/src/utils/web.cpp index fd9f1df8..02028859 100644 --- a/loader/src/utils/web.cpp +++ b/loader/src/utils/web.cpp @@ -188,7 +188,7 @@ std::optional WebProgress::uploadProgress() const { class WebRequest::Impl { public: - static std::atomic_size_t s_counter; + static std::atomic_size_t s_idCounter; std::string m_method; std::string m_url; @@ -207,7 +207,7 @@ public: HttpVersion m_httpVersion = HttpVersion::DEFAULT; size_t m_id; - Impl() : m_id(s_counter++) {} + Impl() : m_id(s_idCounter++) {} WebResponse makeError(int code, std::string const& msg) { auto res = WebResponse(); @@ -217,6 +217,8 @@ public: } }; +std::atomic_size_t WebRequest::Impl::s_idCounter = 0; + WebRequest::WebRequest() : m_impl(std::make_shared()) {} WebRequest::~WebRequest() {}