diff options
author | saturneric <[email protected]> | 2023-12-03 12:28:46 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-12-03 12:28:46 +0000 |
commit | 883db05d54510e76b6548e107593187e1306117d (patch) | |
tree | a4de9d60d3bfeb69ba443129d208feef65250b2c /src/core/model/DataObject.h | |
parent | feat: improve memory security of function framework (diff) | |
download | GpgFrontend-883db05d54510e76b6548e107593187e1306117d.tar.gz GpgFrontend-883db05d54510e76b6548e107593187e1306117d.zip |
feat: general improvements of aync execution and memory security
Diffstat (limited to 'src/core/model/DataObject.h')
-rw-r--r-- | src/core/model/DataObject.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/model/DataObject.h b/src/core/model/DataObject.h index b1b41283..b5c4fa5a 100644 --- a/src/core/model/DataObject.h +++ b/src/core/model/DataObject.h @@ -31,6 +31,7 @@ #include <any> #include "core/GpgFrontendCoreExport.h" +#include "core/utils/MemoryUtils.h" namespace GpgFrontend { @@ -77,7 +78,8 @@ class GPGFRONTEND_CORE_EXPORT DataObject { template <typename... Args> auto TransferParams(Args&&... args) -> std::shared_ptr<DataObject> { - return std::make_shared<DataObject>(DataObject{std::forward<Args>(args)...}); + return GpgFrontend::SecureCreateSharedObject<DataObject>( + DataObject{std::forward<Args>(args)...}); } template <typename T> |