1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-16 11:12:47 -05:00

replace new/delete with sp

This commit is contained in:
4ertus2
2024-10-20 08:24:09 +03:00
parent e32731b60b
commit ab5be0b773
71 changed files with 271 additions and 387 deletions

View File

@@ -49,7 +49,7 @@ public:
protected:
inline bool isActive() const override { return m_active; }
inline IClient *client() const override { return m_client; }
inline IClient* client() const override { return m_client.get(); }
int64_t submit(const JobResult &result) override;
void connect() override;
@@ -68,7 +68,7 @@ protected:
private:
bool m_active;
IClient *m_client;
std::shared_ptr<IClient> m_client;
IStrategyListener *m_listener;
};