aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/gpg/GpgSmartCardManager.cpp
diff options
context:
space:
mode:
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;