diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index a8caa3226..ede7b5cb9 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -3685,7 +3685,7 @@ boost::optional simple_wallet::new_wallet(const boost::pr } success_msg_writer() << "**********************************************************************"; - return std::move(password); + return password; } //---------------------------------------------------------------------------------------------------- boost::optional simple_wallet::new_wallet(const boost::program_options::variables_map& vm, @@ -3732,7 +3732,7 @@ boost::optional simple_wallet::new_wallet(const boost::pr } - return std::move(password); + return password; } //---------------------------------------------------------------------------------------------------- @@ -3770,7 +3770,7 @@ boost::optional simple_wallet::new_wallet(const boost::pr return {}; } - return std::move(password); + return password; } //---------------------------------------------------------------------------------------------------- boost::optional simple_wallet::new_wallet(const boost::program_options::variables_map& vm, @@ -3823,7 +3823,7 @@ boost::optional simple_wallet::new_wallet(const boost::pr return {}; } - return std::move(password); + return password; } //---------------------------------------------------------------------------------------------------- bool simple_wallet::open_wallet(const boost::program_options::variables_map& vm) diff --git a/src/wallet/graft_wallet.cpp b/src/wallet/graft_wallet.cpp index dc9af49bb..e827aba37 100644 --- a/src/wallet/graft_wallet.cpp +++ b/src/wallet/graft_wallet.cpp @@ -94,7 +94,7 @@ std::unique_ptr tools::GraftWallet::createWallet(const std:: { wallet->loadFromData(account_data, password, "" /*cache_file*/, use_base64); } - return std::move(wallet); + return wallet; } bool tools::GraftWallet::verify_message(const std::string &message, const std::string &address,