fixed build issues

This commit is contained in:
Arvid Norberg 2010-08-22 17:47:07 +00:00
parent de3db7e84e
commit 80fbe4d5ef
2 changed files with 5 additions and 3 deletions

View File

@ -48,14 +48,16 @@ namespace libtorrent
m_ptr = p.m_ptr ? new T(*p.m_ptr) : 0;
return *this;
}
T* operator->() { return m_ptr; }
T const* operator->() const { return m_ptr; }
T& operator*() { return *m_ptr; }
T const& operator*() const { return *m_ptr; }
void swap(copy_ptr<T>& p)
{
T* tmp = m_ptr;
m_ptr = p.m_ptr;
p.m_ptr = tmp;
}
T const& operator*() const { return *m_ptr; }
operator bool() const { return m_ptr; }
~copy_ptr() { delete m_ptr; }
private:

View File

@ -42,9 +42,9 @@ POSSIBILITY OF SUCH DAMAGE.
namespace libtorrent
{
file_storage::file_storage()
: m_piece_length(0)
, m_total_size(0)
: m_total_size(0)
, m_num_pieces(0)
, m_piece_length(0)
{}
void file_storage::reserve(int num_files)