Merge pull request #6661

267ce5b71 avoid a couple needless copies (moneromooo-monero)
This commit is contained in:
Alexander Blair 2020-08-16 12:45:37 -07:00
commit bc48494731
No known key found for this signature in database
GPG key ID: C64552D877C32479
2 changed files with 2 additions and 2 deletions

View file

@ -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));
}