From a977f988d5500fb81b7b9f7fb848aed68605c0bc Mon Sep 17 00:00:00 2001 From: SChernykh <15806605+SChernykh@users.noreply.github.com> Date: Thu, 31 Jul 2025 21:09:54 +0200 Subject: [PATCH] Fixed cppcheck errors --- src/json_rpc_request.cpp | 2 +- src/zmq_reader.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/json_rpc_request.cpp b/src/json_rpc_request.cpp index f2cc814..07df0a2 100644 --- a/src/json_rpc_request.cpp +++ b/src/json_rpc_request.cpp @@ -25,7 +25,7 @@ LOG_CATEGORY(JSONRPCRequest) namespace p2pool { namespace JSONRPCRequest { -struct CurlContext +struct CurlContext : public nocopy_nomove { CurlContext(const std::string& address, int port, const std::string& req, const std::string& auth, const std::string& proxy, bool ssl, const std::string& ssl_fingerprint, CallbackBase* cb, CallbackBase* close_cb, uv_loop_t* loop); ~CurlContext(); diff --git a/src/zmq_reader.h b/src/zmq_reader.h index 319667b..33e782a 100644 --- a/src/zmq_reader.h +++ b/src/zmq_reader.h @@ -22,7 +22,7 @@ namespace p2pool { -class ZMQReader { +class ZMQReader : public nocopy_nomove { public: ZMQReader(const std::string& address, uint32_t zmq_port, const std::string& proxy, MinerCallbackHandler* handler); ~ZMQReader();