diff --git a/docs/todo.html b/docs/todo.html index f7dafcfd3..8dab3a16a 100644 --- a/docs/todo.html +++ b/docs/todo.html @@ -22,62 +22,105 @@

libtorrent todo-list

0 urgent -2 important -35 relevant +6 important +50 relevant 9 feasible -134 notes -
relevance 3../src/piece_picker.cpp:155we need a different type to return to the outside here
\ No newline at end of file diff --git a/include/libtorrent/bitfield.hpp b/include/libtorrent/bitfield.hpp index 62bac9f6e..a71f08fc4 100644 --- a/include/libtorrent/bitfield.hpp +++ b/include/libtorrent/bitfield.hpp @@ -69,7 +69,7 @@ namespace libtorrent bitfield(char const* b, int bits): m_buf(NULL) { assign(b, bits); } bitfield(bitfield const& rhs): m_buf(NULL) - { assign(rhs.bytes(), rhs.size()); } + { assign(rhs.data(), rhs.size()); } #if __cplusplus > 199711L bitfield(bitfield&& rhs): m_buf(rhs.m_buf) { rhs.m_buf = NULL; } @@ -157,13 +157,12 @@ namespace libtorrent bool empty() const { return m_buf == NULL ? true : m_buf[-1] == 0; } // returns a pointer to the internal buffer of the bitfield. - // TODO: rename to data() ? - char const* bytes() const { return reinterpret_cast(m_buf); } + char const* data() const { return reinterpret_cast(m_buf); } // copy operator bitfield& operator=(bitfield const& rhs) { - assign(rhs.bytes(), rhs.size()); + assign(rhs.data(), rhs.size()); return *this; }