aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/DataObjectOperator.h
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-11-07 07:18:06 +0000
committersaturneric <[email protected]>2023-11-07 07:18:06 +0000
commit3ad7fecdb6458fdd6f146bed19fe643c7f93e905 (patch)
tree522f7a5dd0389ad0771d01a50ea49ef646940894 /src/core/function/DataObjectOperator.h
parentrefactor: improve the code structure of core (diff)
downloadGpgFrontend-3ad7fecdb6458fdd6f146bed19fe643c7f93e905.tar.gz
GpgFrontend-3ad7fecdb6458fdd6f146bed19fe643c7f93e905.zip
refactor: remove CommonUtils at core
Diffstat (limited to 'src/core/function/DataObjectOperator.h')
-rw-r--r--src/core/function/DataObjectOperator.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/function/DataObjectOperator.h b/src/core/function/DataObjectOperator.h
index b30bce83..06455211 100644
--- a/src/core/function/DataObjectOperator.h
+++ b/src/core/function/DataObjectOperator.h
@@ -48,11 +48,13 @@ class GPGFRONTEND_CORE_EXPORT DataObjectOperator
explicit DataObjectOperator(
int channel = SingletonFunctionObject::GetDefaultChannel());
- std::string SaveDataObj(const std::string &_key, const nlohmann::json &value);
+ auto SaveDataObj(const std::string &_key, const nlohmann::json &value)
+ -> std::string;
- std::optional<nlohmann::json> GetDataObject(const std::string &_key);
+ auto GetDataObject(const std::string &_key) -> std::optional<nlohmann::json>;
- std::optional<nlohmann::json> GetDataObjectByRef(const std::string &_ref);
+ auto GetDataObjectByRef(const std::string &_ref)
+ -> std::optional<nlohmann::json>;
private:
/**