diff --git a/include/log.h b/include/log.h index cfa9270..8988048 100644 --- a/include/log.h +++ b/include/log.h @@ -22,7 +22,7 @@ public: std::vector 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 }; diff --git a/src/log.cpp b/src/log.cpp index c0fed03..cdaeb6b 100644 --- a/src/log.cpp +++ b/src/log.cpp @@ -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 {