diff options
author | saturneric <[email protected]> | 2025-02-03 19:41:16 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2025-02-03 19:41:16 +0000 |
commit | 349269cadaa757622403279c94c3f181cf9130ac (patch) | |
tree | 33ad72d79b9ef736e7b4f617ad978a543f4de6cc /src/core/function/gpg/GpgKeyGetter.cpp | |
parent | Merge branch 'develop' (diff) | |
parent | translation: update zh_CN and de_DE (diff) | |
download | GpgFrontend-349269cadaa757622403279c94c3f181cf9130ac.tar.gz GpgFrontend-349269cadaa757622403279c94c3f181cf9130ac.zip |
Merge branch 'develop'
Diffstat (limited to 'src/core/function/gpg/GpgKeyGetter.cpp')
-rw-r--r-- | src/core/function/gpg/GpgKeyGetter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/function/gpg/GpgKeyGetter.cpp b/src/core/function/gpg/GpgKeyGetter.cpp index e5b234f8..a4ca6021 100644 --- a/src/core/function/gpg/GpgKeyGetter.cpp +++ b/src/core/function/gpg/GpgKeyGetter.cpp @@ -151,7 +151,7 @@ class GpgKeyGetter::Impl : public SingletonFunctionObject<GpgKeyGetter::Impl> { auto GetKeys(const KeyIdArgsList& ids) -> GpgKeyList { auto keys = GpgKeyList{}; - for (const auto& key_id : ids) keys.emplace_back(GetKey(key_id, true)); + for (const auto& key_id : ids) keys.push_back(GetKey(key_id, true)); return keys; } @@ -159,7 +159,7 @@ class GpgKeyGetter::Impl : public SingletonFunctionObject<GpgKeyGetter::Impl> { // get the lock std::lock_guard<std::mutex> lock(ctx_mutex_); auto keys_copy = GpgKeyList{}; - for (const auto& key : keys) keys_copy.emplace_back(key); + for (const auto& key : keys) keys_copy.push_back(key); return keys_copy; } @@ -192,7 +192,7 @@ class GpgKeyGetter::Impl : public SingletonFunctionObject<GpgKeyGetter::Impl> { * @brief * */ - QList<GpgKey> keys_cache_; + QContainer<GpgKey> keys_cache_; /** * @brief shared mutex for the keys cache |