From 224da2747fef1898d5b7612dcef8be824d733729 Mon Sep 17 00:00:00 2001 From: Czarek Nakamoto Date: Tue, 2 Jan 2024 10:12:28 +0100 Subject: fix type on filename method --- libbridge/src/main/cpp/wallet2_api_c.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 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 4d57a36..36197be 100644 --- a/libbridge/src/main/cpp/wallet2_api_c.cpp +++ b/libbridge/src/main/cpp/wallet2_api_c.cpp @@ -840,7 +840,7 @@ bool MONERO_Wallet_store(void* wallet_ptr, const char* path) { Monero::Wallet *wallet = reinterpret_cast(wallet_ptr); return wallet->store(std::string(path)); } -bool MONERO_Wallet_filename(void* wallet_ptr) { +const char* MONERO_Wallet_filename(void* wallet_ptr) { Monero::Wallet *wallet = reinterpret_cast(wallet_ptr); std::string str = wallet->filename(); const std::string::size_type size = str.size(); @@ -848,7 +848,7 @@ bool MONERO_Wallet_filename(void* wallet_ptr) { memcpy(buffer, str.c_str(), size + 1); return buffer; } -bool MONERO_Wallet_keysFilename(void* wallet_ptr) { +const char* MONERO_Wallet_keysFilename(void* wallet_ptr) { Monero::Wallet *wallet = reinterpret_cast(wallet_ptr); std::string str = wallet->keysFilename(); const std::string::size_type size = str.size(); -- cgit v1.2.3