diff options
| author | Philip Kaufmann <[email protected]> | 2015-03-21 18:40:51 +0100 |
|---|---|---|
| committer | Philip Kaufmann <[email protected]> | 2015-03-21 18:40:51 +0100 |
| commit | 341e2385d543ba96ae4d4eac649e9312537e1405 (patch) | |
| tree | 0f4c3a1071c1c89e2c7ae63ab67f1e3fbd09f6db /src/wallet/walletdb.cpp | |
| parent | Merge #5758: refactor: move BDB (bitdb / db.h) interaction from init.cpp to w... (diff) | |
| download | discoin-341e2385d543ba96ae4d4eac649e9312537e1405.tar.xz discoin-341e2385d543ba96ae4d4eac649e9312537e1405.zip | |
use constant references for strings in functions in wallet/*.*
Diffstat (limited to 'src/wallet/walletdb.cpp')
| -rw-r--r-- | src/wallet/walletdb.cpp | 4 |
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); } |