Skip to content

Commit d366795

Browse files
committed
wallet/db: make Backup() const
This method is the to-disk equivalent of serialize methods which are also const.
1 parent 8cd0b86 commit d366795

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/wallet/db.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ bool BerkeleyDatabase::Rewrite(const char* pszSkip)
850850
return BerkeleyBatch::Rewrite(*this, pszSkip);
851851
}
852852

853-
bool BerkeleyDatabase::Backup(const std::string& strDest)
853+
bool BerkeleyDatabase::Backup(const std::string& strDest) const
854854
{
855855
if (IsDummy()) {
856856
return false;

src/wallet/db.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class BerkeleyDatabase
157157

158158
/** Back up the entire database to a file.
159159
*/
160-
bool Backup(const std::string& strDest);
160+
bool Backup(const std::string& strDest) const;
161161

162162
/** Make sure all changes are flushed to disk.
163163
*/

0 commit comments

Comments
 (0)