Merge pull request #61 from ssiloti/master
add default NULL ctor to session_handle
This commit is contained in:
commit
4b1d3485ab
|
@ -65,10 +65,14 @@ namespace libtorrent
|
||||||
|
|
||||||
struct TORRENT_EXPORT session_handle
|
struct TORRENT_EXPORT session_handle
|
||||||
{
|
{
|
||||||
|
session_handle() : m_impl(NULL) {}
|
||||||
|
|
||||||
session_handle(aux::session_impl* impl)
|
session_handle(aux::session_impl* impl)
|
||||||
: m_impl(impl)
|
: m_impl(impl)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
bool is_valid() const { return m_impl; }
|
||||||
|
|
||||||
// TODO: 2 the ip filter should probably be saved here too
|
// TODO: 2 the ip filter should probably be saved here too
|
||||||
|
|
||||||
// flags that determines which aspects of the session should be
|
// flags that determines which aspects of the session should be
|
||||||
|
|
Loading…
Reference in New Issue