fix: add one more file to list of non-backported (flat-database.h)

This commit is contained in:
Konstantin Akimov 2024-09-26 02:27:10 +07:00
parent 41f1a43236
commit 7aafb5a393
No known key found for this signature in database
GPG Key ID: 2176C4A5D01EA524
2 changed files with 8 additions and 7 deletions

View File

@ -117,9 +117,9 @@ private:
} }
unsigned char pchMsgTmp[4];
std::string strMagicMessageTmp;
try { try {
unsigned char pchMsgTmp[4];
std::string strMagicMessageTmp;
// de-serialize file header (file specific magic message) and .. // de-serialize file header (file specific magic message) and ..
ssObj >> strMagicMessageTmp; ssObj >> strMagicMessageTmp;
@ -178,11 +178,11 @@ private:
} }
public: public:
CFlatDB(std::string strFilenameIn, std::string strMagicMessageIn) CFlatDB(std::string&& strFilenameIn, std::string&& strMagicMessageIn) :
pathDB{gArgs.GetDataDirNet() / strFilenameIn},
strFilename{strFilenameIn},
strMagicMessage{strMagicMessageIn}
{ {
pathDB = gArgs.GetDataDirNet() / strFilenameIn;
strFilename = strFilenameIn;
strMagicMessage = strMagicMessageIn;
} }
bool Load(T& objToLoad) bool Load(T& objToLoad)
@ -191,7 +191,7 @@ public:
return Read(objToLoad); return Read(objToLoad);
} }
bool Store(T& objToSave) bool Store(const T& objToSave)
{ {
LogPrintf("Verifying %s format...\n", strFilename); LogPrintf("Verifying %s format...\n", strFilename);
T tmpObjToLoad; T tmpObjToLoad;

View File

@ -9,6 +9,7 @@ src/coinjoin/*.h
src/ctpl_stl.h src/ctpl_stl.h
src/cxxtimer.hpp src/cxxtimer.hpp
src/dsnotificationinterface.* src/dsnotificationinterface.*
src/flat-database.h
src/evo/*.cpp src/evo/*.cpp
src/evo/*.h src/evo/*.h
src/governance/*.cpp src/governance/*.cpp