1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-11 09:22:48 -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

@@ -46,12 +46,12 @@ public:
XMRIG_DISABLE_COPY_MOVE_DEFAULT(Miner)
Miner(Controller *controller);
~Miner() override;
~Miner() override = default;
bool isEnabled() const;
bool isEnabled(const Algorithm &algorithm) const;
const Algorithms &algorithms() const;
const std::vector<IBackend *> &backends() const;
const std::vector<std::shared_ptr<IBackend>> &backends() const;
Job job() const;
void execCommand(char command);
void pause();
@@ -72,7 +72,7 @@ protected:
# endif
private:
MinerPrivate *d_ptr;
std::shared_ptr<MinerPrivate> d_ptr;
};