Commit 72e90870 authored by rakshasa's avatar rakshasa

Changed parameter in BlockFailed to value_type to fix warnings.

parent c60d2b94
......@@ -85,8 +85,8 @@ private:
BlockFailed(const BlockFailed&);
void operator = (const BlockFailed&);
static void delete_entry(const reference e) { delete [] e.first; }
static bool compare_entries(const reference e1, const reference e2) { return e1.second < e2.second; }
static void delete_entry(value_type e) { delete [] e.first; }
static bool compare_entries(value_type e1, value_type e2) { return e1.second < e2.second; }
size_type m_current;
};
......
......@@ -159,7 +159,7 @@ TransferList::hash_succeeded(uint32_t index, Chunk* chunk) {
struct transfer_list_compare_data {
transfer_list_compare_data(Chunk* chunk, const Piece& p) : m_chunk(chunk), m_piece(p) { }
bool operator () (const BlockFailed::reference failed) {
bool operator () (BlockFailed::value_type failed) {
return m_chunk->compare_buffer(failed.first, m_piece.offset(), m_piece.length());
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment