mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-16 00:02:14 +11:00
🐎 made GetLogs() return move rather then const ref
This commit is contained in:
parent
2f699e70c8
commit
c94c19cbe1
2 changed files with 2 additions and 2 deletions
|
|
@ -22,7 +22,7 @@ public:
|
|||
std::vector<Transaction> data;
|
||||
#endif
|
||||
|
||||
const std::string &GetLogs() noexcept;
|
||||
std::string GetLogs() noexcept;
|
||||
void AddTrans(const Transaction &t) noexcept;
|
||||
Json::Value Serialize() const; // to be removed later
|
||||
};
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ void Log::AddTrans(const Transaction &t) noexcept
|
|||
#endif
|
||||
}
|
||||
|
||||
const std::string &Log::GetLogs() noexcept
|
||||
std::string Log::GetLogs() noexcept
|
||||
{
|
||||
if (log_flag.GetChangeState() && data.size()) //if there are changes
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue