aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/widgets/KeyTable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/widgets/KeyTable.cpp')
-rw-r--r--src/ui/widgets/KeyTable.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/widgets/KeyTable.cpp b/src/ui/widgets/KeyTable.cpp
index a1f5db07..10ebe6eb 100644
--- a/src/ui/widgets/KeyTable.cpp
+++ b/src/ui/widgets/KeyTable.cpp
@@ -34,10 +34,10 @@
namespace GpgFrontend::UI {
-auto KeyTable::GetChecked() const -> KeyIdArgsListPtr {
- auto ret = std::make_unique<KeyIdArgsList>();
+auto KeyTable::GetChecked() const -> KeyIdArgsList {
+ auto ret = KeyIdArgsList{};
for (decltype(GetRowCount()) i = 0; i < GetRowCount(); i++) {
- if (IsRowChecked(i)) ret->push_back(GetKeyIdByRow(i));
+ if (IsRowChecked(i)) ret.push_back(GetKeyIdByRow(i));
}
return ret;
}