diff --git a/src/wallet/MoneroWallet.cpp b/src/wallet/MoneroWallet.cpp index cade5cd..a95e63e 100644 --- a/src/wallet/MoneroWallet.cpp +++ b/src/wallet/MoneroWallet.cpp @@ -475,12 +475,8 @@ namespace monero { // sync wallet wallet2Listener->onSyncStart(syncStartHeight, listener); - - MoneroSyncResult result; - result.numBlocksFetched = shared_ptr(new uint64_t()); - result.receivedMoney = shared_ptr(new bool()); - wallet2->refresh(wallet2->is_trusted_daemon(), syncStartHeight, *result.numBlocksFetched, *result.receivedMoney, true); + wallet2->refresh(wallet2->is_trusted_daemon(), syncStartHeight, result.numBlocksFetched, result.receivedMoney, true); wallet2Listener->onSyncEnd(); return result; } diff --git a/src/wallet/MoneroWallet.h b/src/wallet/MoneroWallet.h index 598de94..e89f429 100644 --- a/src/wallet/MoneroWallet.h +++ b/src/wallet/MoneroWallet.h @@ -17,10 +17,10 @@ namespace monero { * Models a result of syncing a wallet. */ struct MoneroSyncResult { - shared_ptr numBlocksFetched; - shared_ptr receivedMoney; + uint64_t numBlocksFetched; + bool receivedMoney; MoneroSyncResult() {} - MoneroSyncResult(const shared_ptr numBlocksFetched, const shared_ptr receivedMoney) : numBlocksFetched(numBlocksFetched), receivedMoney(receivedMoney) {} + MoneroSyncResult(const uint64_t numBlocksFetched, const bool receivedMoney) : numBlocksFetched(numBlocksFetched), receivedMoney(receivedMoney) {} }; /**