aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/gpg/GpgSmartCardManager.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-04-30 19:48:18 +0000
committersaturneric <[email protected]>2025-04-30 19:48:18 +0000
commit9350d01d27577327de57ca4941da4aa0fb9fee70 (patch)
tree77cbc1ee8ea559b18b1cbef8e0b6f17e70866d06 /src/core/function/gpg/GpgSmartCardManager.cpp
parentMerge remote-tracking branch 'github/main' into develop (diff)
downloadGpgFrontend-9350d01d27577327de57ca4941da4aa0fb9fee70.tar.gz
GpgFrontend-9350d01d27577327de57ca4941da4aa0fb9fee70.zip
refactor: avoid directly using libassuan
Diffstat (limited to 'src/core/function/gpg/GpgSmartCardManager.cpp')
-rw-r--r--src/core/function/gpg/GpgSmartCardManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/function/gpg/GpgSmartCardManager.cpp b/src/core/function/gpg/GpgSmartCardManager.cpp
index 976b7fd1..bd5711c9 100644
--- a/src/core/function/gpg/GpgSmartCardManager.cpp
+++ b/src/core/function/gpg/GpgSmartCardManager.cpp
@@ -124,7 +124,7 @@ auto GpgSmartCardManager::GetSerialNumbers() -> QStringList {
continue;
}
- auto serial_number = tokens[1];
+ const auto& serial_number = tokens[1];
if (!line.contains("openpgp")) {
LOG_W() << "smart card: " << serial_number << "doesn't support openpgp.";
continue;