From eabe10d3d9f219933645407c1b80b8c93eb4573c Mon Sep 17 00:00:00 2001 From: Czarek Nakamoto Date: Fri, 29 Dec 2023 00:20:22 +0100 Subject: drop wallet_ptr from places where it isn't used --- libbridge/src/main/cpp/wallet2_api_c.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libbridge/src/main/cpp/wallet2_api_c.cpp') diff --git a/libbridge/src/main/cpp/wallet2_api_c.cpp b/libbridge/src/main/cpp/wallet2_api_c.cpp index 22f310d..18a17c9 100644 --- a/libbridge/src/main/cpp/wallet2_api_c.cpp +++ b/libbridge/src/main/cpp/wallet2_api_c.cpp @@ -391,14 +391,14 @@ bool MONERO_WalletManager_closeWallet(void* wallet_ptr, bool store) { store); } -bool MONERO_WalletManager_walletExists(void* wallet_ptr, const char* path) { +bool MONERO_WalletManager_walletExists(const char* path) { return Monero::WalletManagerFactory::getWalletManager()->walletExists(std::string(path)); } -const char* MONERO_WalletManager_errorString(void* wallet_ptr) { +const char* MONERO_WalletManager_errorString() { return Monero::WalletManagerFactory::getWalletManager()->errorString().c_str(); } -void MONERO_WalletManager_setDaemonAddress(void* wallet_ptr, const char* address) { +void MONERO_WalletManager_setDaemonAddress(const char* address) { return Monero::WalletManagerFactory::getWalletManager()->setDaemonAddress(std::string(address)); } -- cgit v1.2.3