diff options
author | saturneric <[email protected]> | 2024-12-13 15:22:33 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-12-13 15:22:33 +0000 |
commit | f7a00c58d2824f49ecaafc0152fc0b8213772e46 (patch) | |
tree | d012e5fac4ff9f48cd10381a0b79de0294d28d18 /src/core/model/DataObject.h | |
parent | doc: update SECURITY.md (diff) | |
download | GpgFrontend-f7a00c58d2824f49ecaafc0152fc0b8213772e46.tar.gz GpgFrontend-f7a00c58d2824f49ecaafc0152fc0b8213772e46.zip |
refactor: using qt containers instead of std containers
Diffstat (limited to 'src/core/model/DataObject.h')
-rw-r--r-- | src/core/model/DataObject.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/model/DataObject.h b/src/core/model/DataObject.h index f67cff99..1713e8dd 100644 --- a/src/core/model/DataObject.h +++ b/src/core/model/DataObject.h @@ -33,13 +33,11 @@ #include <typeinfo> #include "core/GpgFrontendCoreExport.h" +#include "core/typedef/CoreTypedef.h" #include "core/utils/MemoryUtils.h" namespace GpgFrontend { -class DataObject; -using DataObjectPtr = std::shared_ptr<DataObject>; ///< - class GPGFRONTEND_CORE_EXPORT DataObject { public: DataObject(); @@ -66,7 +64,7 @@ class GPGFRONTEND_CORE_EXPORT DataObject { auto Check() -> bool { if (sizeof...(Args) != GetObjectSize()) return false; - std::vector<std::type_info const*> type_list = {&typeid(Args)...}; + QContainer<std::type_info const*> type_list = {&typeid(Args)...}; for (size_t i = 0; i < type_list.size(); ++i) { if (std::type_index(*type_list[i]) != std::type_index((*this)[i].type())) { |