diff options
author | Saturneric <[email protected]> | 2021-09-10 23:58:09 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-09-10 16:06:21 +0000 |
commit | 4e076fa1982812ea7d1222c7e981879799ca8853 (patch) | |
tree | 1b96ae4a6296ca0f7b9df8ce3a3c7339643bf1f0 /src/gpg/model/GpgKey.cpp | |
parent | Adjust the code structure. (diff) | |
download | GpgFrontend-4e076fa1982812ea7d1222c7e981879799ca8853.tar.gz GpgFrontend-4e076fa1982812ea7d1222c7e981879799ca8853.zip |
Continue to optimize and improve the code.
Diffstat (limited to '')
-rw-r--r-- | src/gpg/model/GpgKey.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpg/model/GpgKey.cpp b/src/gpg/model/GpgKey.cpp index fa52c6f2..a0511051 100644 --- a/src/gpg/model/GpgKey.cpp +++ b/src/gpg/model/GpgKey.cpp @@ -38,7 +38,7 @@ GpgFrontend::GpgKey::subKeys() const { auto p_keys = std::make_unique<std::vector<GpgSubKey>>(); auto next = _key_ref->subkeys; while (next != nullptr) { - p_keys->push_back(std::move(GpgSubKey(next))); + p_keys->push_back(GpgSubKey(next)); next = next->next; } return p_keys; @@ -49,7 +49,7 @@ GpgFrontend::GpgKey::uids() const { auto p_uids = std::make_unique<std::vector<GpgUID>>(); auto uid_next = _key_ref->uids; while (uid_next != nullptr) { - p_uids->push_back(std::move(GpgUID(uid_next))); + p_uids->push_back(GpgUID(uid_next)); uid_next = uid_next->next; } return p_uids; |