From 22d7e7014f2064fb9e52c634f68b3c5e965faec0 Mon Sep 17 00:00:00 2001 From: Philip Kaufmann Date: Tue, 16 Sep 2014 15:16:29 +0200 Subject: prefer const string& over char* in CDB and CWalletDB constructor - also make parameter of CDBEnv::CheckpointLSN a constant reference --- src/walletdb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/walletdb.h') diff --git a/src/walletdb.h b/src/walletdb.h index ce63bb0b97..475d4fb96d 100644 --- a/src/walletdb.h +++ b/src/walletdb.h @@ -75,7 +75,7 @@ public: class CWalletDB : public CDB { public: - CWalletDB(std::string strFilename, const char* pszMode="r+") : CDB(strFilename.c_str(), pszMode) + CWalletDB(const std::string& strFilename, const char* pszMode = "r+") : CDB(strFilename, pszMode) { } private: -- cgit v1.2.3