diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-06-14 18:05:18 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-06-14 18:05:35 +0000 |
commit | 267ce5b7181474ffbcb6655f54b9332f1e376327 (patch) | |
tree | 501018e7dd00ec69f23ea378f97d78d2082fd6db /src/device/device_ledger.cpp | |
parent | Merge pull request #6576 (diff) | |
download | monero-267ce5b7181474ffbcb6655f54b9332f1e376327.tar.xz |
avoid a couple needless copies
Diffstat (limited to '')
-rw-r--r-- | src/device/device_ledger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device/device_ledger.cpp b/src/device/device_ledger.cpp index 222a84d3f..6295d5310 100644 --- a/src/device/device_ledger.cpp +++ b/src/device/device_ledger.cpp @@ -1548,7 +1548,7 @@ namespace hw { const bool need_additional_txkeys_x = need_additional_txkeys; std::vector<crypto::secret_key> additional_tx_keys_x; - for (const auto k: additional_tx_keys) { + for (const auto &k: additional_tx_keys) { additional_tx_keys_x.push_back(hw::ledger::decrypt(k)); } |