diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-10-03 23:20:50 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-10-03 23:20:50 +0100 |
commit | 3644aa94f373682d8cbc240c3d9b37558fc6fdd8 (patch) | |
tree | f8599e1eb79711d634e49fd8fa2bdc2aca2df622 /src | |
parent | Merge pull request #1124 (diff) | |
download | monero-3644aa94f373682d8cbc240c3d9b37558fc6fdd8.tar.xz |
blockchain: avoid using a reference to a temporary
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptonote_core/blockchain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index badb1a335..1538be00f 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -1764,7 +1764,7 @@ bool Blockchain::get_outs(const COMMAND_RPC_GET_OUTPUTS::request& req, COMMAND_R for (const auto &i: req.outputs) { // get tx_hash, tx_out_index from DB - const output_data_t &od = m_db->get_output_key(i.amount, i.index); + const output_data_t od = m_db->get_output_key(i.amount, i.index); tx_out_index toi = m_db->get_output_tx_and_index(i.amount, i.index); bool unlocked = is_tx_spendtime_unlocked(m_db->get_tx_unlock_time(toi.first)); |