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/db.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/db.cpp')
| -rw-r--r-- | src/wallet/db.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/db.cpp b/src/wallet/db.cpp index 36946b7dc..53cfcf096 100644 --- a/src/wallet/db.cpp +++ b/src/wallet/db.cpp @@ -148,7 +148,7 @@ void CDBEnv::MakeMock() fMockDb = true; } -CDBEnv::VerifyResult CDBEnv::Verify(std::string strFile, bool (*recoverFunc)(CDBEnv& dbenv, std::string strFile)) +CDBEnv::VerifyResult CDBEnv::Verify(const std::string& strFile, bool (*recoverFunc)(CDBEnv& dbenv, const std::string& strFile)) { LOCK(cs_db); assert(mapFileUseCount.count(strFile) == 0); @@ -165,7 +165,7 @@ CDBEnv::VerifyResult CDBEnv::Verify(std::string strFile, bool (*recoverFunc)(CDB return (fRecovered ? RECOVER_OK : RECOVER_FAIL); } -bool CDBEnv::Salvage(std::string strFile, bool fAggressive, std::vector<CDBEnv::KeyValPair>& vResult) +bool CDBEnv::Salvage(const std::string& strFile, bool fAggressive, std::vector<CDBEnv::KeyValPair>& vResult) { LOCK(cs_db); assert(mapFileUseCount.count(strFile) == 0); |