diff options
author | Philip Kaufmann <phil.kaufmann@t-online.de> | 2014-09-16 15:16:29 +0200 |
---|---|---|
committer | Philip Kaufmann <phil.kaufmann@t-online.de> | 2014-09-18 07:21:49 +0200 |
commit | 22d7e7014f2064fb9e52c634f68b3c5e965faec0 (patch) | |
tree | e958045998cf5cb60b30a3915e4b08f84731e9a9 /src/walletdb.h | |
parent | 438c7e4cd2179170aeadb4aa1c902ccd1256dee6 (diff) | |
download | bitcoin-22d7e7014f2064fb9e52c634f68b3c5e965faec0.tar.xz |
prefer const string& over char* in CDB and CWalletDB constructor
- also make parameter of CDBEnv::CheckpointLSN a constant reference
Diffstat (limited to 'src/walletdb.h')
-rw-r--r-- | src/walletdb.h | 2 |
1 files changed, 1 insertions, 1 deletions
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: |