diff options
author | saturneric <[email protected]> | 2025-02-03 18:13:23 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2025-02-03 19:14:29 +0000 |
commit | 37d5b7e5546fde0433a2480eea5a2c3b222139ff (patch) | |
tree | 9c1f6f2d4b456dea2fb1af4aefcf4f1ac6ae97ee /src/sdk/private/GFSDKPrivat.h | |
parent | fix: set pb range when size of operas > 1 (diff) | |
download | GpgFrontend-37d5b7e5546fde0433a2480eea5a2c3b222139ff.tar.gz GpgFrontend-37d5b7e5546fde0433a2480eea5a2c3b222139ff.zip |
fix: qt5 compile issues
Diffstat (limited to 'src/sdk/private/GFSDKPrivat.h')
-rw-r--r-- | src/sdk/private/GFSDKPrivat.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/sdk/private/GFSDKPrivat.h b/src/sdk/private/GFSDKPrivat.h index 1d1cc8d3..aff71420 100644 --- a/src/sdk/private/GFSDKPrivat.h +++ b/src/sdk/private/GFSDKPrivat.h @@ -29,6 +29,7 @@ #pragma once #include <core/function/SecureMemoryAllocator.h> +#include <core/typedef/CoreTypedef.h> Q_DECLARE_LOGGING_CATEGORY(sdk) @@ -108,12 +109,13 @@ auto CharArrayToQStringList(char **char_array, int size) -> QStringList; auto QStringListToCharArray(const QStringList &list) -> char **; template <typename T> -inline auto ArrayToQList(T **pl_components, int size) -> QList<T> { +inline auto ArrayToQList(T **pl_components, + int size) -> GpgFrontend::QContainer<T> { if (pl_components == nullptr || size <= 0) { - return QList<T>(); + return GpgFrontend::QContainer<T>(); } - QList<T> list; + GpgFrontend::QContainer<T> list; for (int i = 0; i < size; ++i) { list.append(*pl_components[i]); GpgFrontend::SecureMemoryAllocator::Deallocate(pl_components[i]); @@ -123,7 +125,7 @@ inline auto ArrayToQList(T **pl_components, int size) -> QList<T> { } template <typename T> -inline auto QListToArray(const QList<T> &list) -> T ** { +inline auto QListToArray(const GpgFrontend::QContainer<T> &list) -> T ** { T **array = static_cast<T **>( GpgFrontend::SecureMemoryAllocator::Allocate(list.size() * sizeof(T *))); int index = 0; |