aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/walletdb.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2015-03-24 05:31:55 -0700
committerPieter Wuille <[email protected]>2015-03-24 05:33:31 -0700
commit45d6d0bce54dd387a1328c8433340dece2bf59c8 (patch)
tree08b22ddc4058133b77ca7a733191889d62190d6d /src/wallet/walletdb.cpp
parentMerge pull request #5938 (diff)
parentuse constant references for strings in functions in wallet/*.* (diff)
downloaddiscoin-45d6d0bce54dd387a1328c8433340dece2bf59c8.tar.xz
discoin-45d6d0bce54dd387a1328c8433340dece2bf59c8.zip
Merge pull request #5933
341e238 use constant references for strings in functions in wallet/*.* (Philip Kaufmann)
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 880026d18..d7f70e435 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);
}