File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -79,11 +79,7 @@ struct CMainSignalsInstance {
79
79
static CMainSignals g_signals;
80
80
81
81
CMainSignals::CMainSignals () {
82
- internals = new CMainSignalsInstance ();
83
- }
84
-
85
- CMainSignals::~CMainSignals () {
86
- delete internals;
82
+ internals.reset (new CMainSignalsInstance ());
87
83
}
88
84
89
85
void CMainSignals::RegisterBackgroundSignalScheduler (CScheduler& scheduler) {
Original file line number Diff line number Diff line change @@ -70,15 +70,14 @@ class CValidationInterface {
70
70
struct CMainSignalsInstance ;
71
71
class CMainSignals {
72
72
private:
73
- CMainSignalsInstance* internals;
73
+ std::unique_ptr< CMainSignalsInstance> internals;
74
74
75
75
friend void ::RegisterValidationInterface (CValidationInterface*);
76
76
friend void ::UnregisterValidationInterface (CValidationInterface*);
77
77
friend void ::UnregisterAllValidationInterfaces ();
78
78
79
79
public:
80
80
CMainSignals ();
81
- ~CMainSignals ();
82
81
83
82
/* * Register a CScheduler to give callbacks which should run in the background (may only be called once) */
84
83
void RegisterBackgroundSignalScheduler (CScheduler& scheduler);
You can’t perform that action at this time.
0 commit comments