aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/walletdb.cpp
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2015-03-21 18:40:51 +0100
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2015-03-21 18:40:51 +0100
commit341e2385d543ba96ae4d4eac649e9312537e1405 (patch)
tree0f4c3a1071c1c89e2c7ae63ab67f1e3fbd09f6db /src/wallet/walletdb.cpp
parentf3948a30cd27928fdf9dffbbf90ea6430c869edf (diff)
downloadbitcoin-341e2385d543ba96ae4d4eac649e9312537e1405.tar.xz
use constant references for strings in functions in wallet/*.*
Diffstat (limited to 'src/wallet/walletdb.cpp')
-rw-r--r--src/wallet/walletdb.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/walletdb.cpp b/src/wallet/walletdb.cpp
index 880026d187..d7f70e435e 100644
--- a/src/wallet/walletdb.cpp
+++ b/src/wallet/walletdb.cpp
@@ -891,7 +891,7 @@ bool BackupWallet(const CWallet& wallet, const string& strDest)
//
// Try to (very carefully!) recover wallet.dat if there is a problem.
//
-bool CWalletDB::Recover(CDBEnv& dbenv, std::string filename, bool fOnlyKeys)
+bool CWalletDB::Recover(CDBEnv& dbenv, const std::string& filename, bool fOnlyKeys)
{
// Recovery procedure:
// move wallet.dat to wallet.timestamp.bak
@@ -968,7 +968,7 @@ bool CWalletDB::Recover(CDBEnv& dbenv, std::string filename, bool fOnlyKeys)
return fSuccess;
}
-bool CWalletDB::Recover(CDBEnv& dbenv, std::string filename)
+bool CWalletDB::Recover(CDBEnv& dbenv, const std::string& filename)
{
return CWalletDB::Recover(dbenv, filename, false);
}