Skip to content

Commit

Permalink
try get away other callback deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollon77 committed May 9, 2024
1 parent 80ee473 commit 73356f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mbus-master.cc
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ static int init_slaves(mbus_handle *handle)
class RecieveWorker : public Nan::AsyncWorker {
public:
RecieveWorker(Nan::Callback *callback, char *addr_str, bool ping_first, uv_rwlock_t *lock, mbus_handle *handle, bool *communicationInProgress, bool isConnected)
: Nan::AsyncWorker(callback), addr_str(addr_str), ping_first(ping_first), lock(lock), handle(handle), communicationInProgress(communicationInProgress) {}
: Nan::AsyncWorker(callback), addr_str(addr_str), ping_first(ping_first), lock(lock), handle(handle), communicationInProgress(communicationInProgress), isConnected(isConnected) {}
~RecieveWorker() {
free(addr_str);
}
Expand Down Expand Up @@ -421,7 +421,7 @@ NAN_METHOD(MbusMaster::Get) {
class ScanSecondaryWorker : public Nan::AsyncWorker {
public:
ScanSecondaryWorker(Nan::Callback *callback,uv_rwlock_t *lock, mbus_handle *handle, bool *communicationInProgress, bool isConnected)
: Nan::AsyncWorker(callback), lock(lock), handle(handle), communicationInProgress(communicationInProgress) {}
: Nan::AsyncWorker(callback), lock(lock), handle(handle), communicationInProgress(communicationInProgress), isConnected(isConnected) {}
~ScanSecondaryWorker() {
}

Expand Down Expand Up @@ -623,7 +623,7 @@ NAN_METHOD(MbusMaster::ScanSecondary) {
class SetPrimaryWorker : public Nan::AsyncWorker {
public:
SetPrimaryWorker(Nan::Callback *callback, char *old_addr_str, int new_address, uv_rwlock_t *lock, mbus_handle *handle, bool *communicationInProgress, bool isConnected)
: Nan::AsyncWorker(callback), old_addr_str(old_addr_str), new_address(new_address), lock(lock), handle(handle), communicationInProgress(communicationInProgress) {}
: Nan::AsyncWorker(callback), old_addr_str(old_addr_str), new_address(new_address), lock(lock), handle(handle), communicationInProgress(communicationInProgress), isConnected(isConnected) {}
~SetPrimaryWorker() {
free(old_addr_str);
}
Expand Down

0 comments on commit 73356f9

Please sign in to comment.