header dependency fix

This commit is contained in:
Arvid Norberg 2009-11-26 18:31:27 +00:00
parent f42f4641a6
commit 7db5996abc
3 changed files with 10 additions and 8 deletions

View File

@ -143,15 +143,9 @@ namespace libtorrent
}
bool is_working() const
{
return fails == 0;
}
{ return fails == 0; }
void trim()
{
while (!url.empty() && is_space(url[0]))
url.erase(url.begin());
}
void trim();
};
#ifndef BOOST_NO_EXCEPTIONS

View File

@ -37,6 +37,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/utf8.hpp"
#include <boost/bind.hpp>
#include <cstdio>
#include <algorithm>
namespace libtorrent
{

View File

@ -58,6 +58,7 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/config.hpp"
#include "libtorrent/torrent_info.hpp"
#include "libtorrent/escape_string.hpp" // is_space
#include "libtorrent/bencode.hpp"
#include "libtorrent/hasher.hpp"
#include "libtorrent/entry.hpp"
@ -407,6 +408,12 @@ namespace libtorrent
updating = false;
}
void announce_entry::trim()
{
while (!url.empty() && is_space(url[0]))
url.erase(url.begin());
}
torrent_info::torrent_info(torrent_info const& t)
: m_files(t.m_files)
, m_orig_files(t.m_orig_files)