🐎 made GetLogs() return move rather then const ref

This commit is contained in:
EntireTwix 2021-07-12 21:34:21 -07:00
parent 2f699e70c8
commit c94c19cbe1
2 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@ public:
std::vector<Transaction> data; std::vector<Transaction> data;
#endif #endif
const std::string &GetLogs() noexcept; std::string GetLogs() noexcept;
void AddTrans(const Transaction &t) noexcept; void AddTrans(const Transaction &t) noexcept;
Json::Value Serialize() const; // to be removed later Json::Value Serialize() const; // to be removed later
}; };

View file

@ -19,7 +19,7 @@ void Log::AddTrans(const Transaction &t) noexcept
#endif #endif
} }
const std::string &Log::GetLogs() noexcept std::string Log::GetLogs() noexcept
{ {
if (log_flag.GetChangeState() && data.size()) //if there are changes if (log_flag.GetChangeState() && data.size()) //if there are changes
{ {