From 419873e4ff3ff306c59f1bb10c59dce02a5df13b Mon Sep 17 00:00:00 2001 From: IgorekLoschinin Date: Tue, 4 May 2021 20:19:33 +0300 Subject: [PATCH] ref #46 Fixing: change of method implementation toJson in owner. --- src/CopyrighFixer/CopyrighFixer/owner.cpp | 2 -- src/CopyrighFixer/CopyrighFixer/owner.h | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/CopyrighFixer/CopyrighFixer/owner.cpp b/src/CopyrighFixer/CopyrighFixer/owner.cpp index b07b01f..3f7f550 100644 --- a/src/CopyrighFixer/CopyrighFixer/owner.cpp +++ b/src/CopyrighFixer/CopyrighFixer/owner.cpp @@ -37,8 +37,6 @@ void Owner::toJson(QJsonObject &objJs) const { objJs["name"] = _name; objJs["timePoint"] = _timePoint; - - return objJs; } bool Owner::isValid() const { diff --git a/src/CopyrighFixer/CopyrighFixer/owner.h b/src/CopyrighFixer/CopyrighFixer/owner.h index 3b708d7..7389525 100644 --- a/src/CopyrighFixer/CopyrighFixer/owner.h +++ b/src/CopyrighFixer/CopyrighFixer/owner.h @@ -56,7 +56,7 @@ public: * @param objJs It's object json - container. * @return Returns a json object with owner a information. */ - const QJsonObject &toJson(QJsonObject &objJs) const; + void toJson(QJsonObject &objJs) const; /** * @brief isValid Checks if an object is initialized.