aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/db.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2015-03-24 05:31:55 -0700
committerPieter Wuille <pieter.wuille@gmail.com>2015-03-24 05:33:31 -0700
commit45d6d0bce54dd387a1328c8433340dece2bf59c8 (patch)
tree08b22ddc4058133b77ca7a733191889d62190d6d /src/wallet/db.h
parent46ba7a74a534dbe3b79007436626bc0e78915afa (diff)
parent341e2385d543ba96ae4d4eac649e9312537e1405 (diff)
Merge pull request #5933
341e238 use constant references for strings in functions in wallet/*.* (Philip Kaufmann)
Diffstat (limited to 'src/wallet/db.h')
-rw-r--r--src/wallet/db.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/db.h b/src/wallet/db.h
index 71133f9699..0c2c139d89 100644
--- a/src/wallet/db.h
+++ b/src/wallet/db.h
@@ -59,7 +59,7 @@ public:
enum VerifyResult { VERIFY_OK,
RECOVER_OK,
RECOVER_FAIL };
- VerifyResult Verify(std::string strFile, bool (*recoverFunc)(CDBEnv& dbenv, std::string strFile));
+ VerifyResult Verify(const std::string& strFile, bool (*recoverFunc)(CDBEnv& dbenv, const std::string& strFile));
/**
* Salvage data from a file that Verify says is bad.
* fAggressive sets the DB_AGGRESSIVE flag (see berkeley DB->verify() method documentation).
@@ -68,7 +68,7 @@ public:
* for huge databases.
*/
typedef std::pair<std::vector<unsigned char>, std::vector<unsigned char> > KeyValPair;
- bool Salvage(std::string strFile, bool fAggressive, std::vector<KeyValPair>& vResult);
+ bool Salvage(const std::string& strFile, bool fAggressive, std::vector<KeyValPair>& vResult);
bool Open(const boost::filesystem::path& path);
void Close();