diff options
| author | Philip Kaufmann <[email protected]> | 2014-09-16 15:16:29 +0200 |
|---|---|---|
| committer | Philip Kaufmann <[email protected]> | 2014-09-18 07:21:49 +0200 |
| commit | 22d7e7014f2064fb9e52c634f68b3c5e965faec0 (patch) | |
| tree | e958045998cf5cb60b30a3915e4b08f84731e9a9 /src/walletdb.h | |
| parent | Merge pull request #4555 (diff) | |
| download | discoin-22d7e7014f2064fb9e52c634f68b3c5e965faec0.tar.xz discoin-22d7e7014f2064fb9e52c634f68b3c5e965faec0.zip | |
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 ce63bb0b9..475d4fb96 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: |