mirror of https://github.com/vitalif/grive2
libgrive: Fix destructors of Feed and Feed2
parent
e972a77790
commit
7ef50e9523
|
@ -30,6 +30,10 @@ Feed::Feed( const std::string &url ):
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Feed::~Feed()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
Feed::iterator Feed::begin() const
|
Feed::iterator Feed::begin() const
|
||||||
{
|
{
|
||||||
return m_entries.begin() ;
|
return m_entries.begin() ;
|
||||||
|
|
|
@ -41,6 +41,7 @@ public :
|
||||||
public :
|
public :
|
||||||
Feed( const std::string& url );
|
Feed( const std::string& url );
|
||||||
virtual bool GetNext( http::Agent *http ) = 0 ;
|
virtual bool GetNext( http::Agent *http ) = 0 ;
|
||||||
|
virtual ~Feed() = 0 ;
|
||||||
iterator begin() const ;
|
iterator begin() const ;
|
||||||
iterator end() const ;
|
iterator end() const ;
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,10 @@ Feed2::Feed2( const std::string& url ):
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Feed2::~Feed2()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
bool Feed2::GetNext( http::Agent *http )
|
bool Feed2::GetNext( http::Agent *http )
|
||||||
{
|
{
|
||||||
if ( m_next.empty() )
|
if ( m_next.empty() )
|
||||||
|
|
|
@ -31,6 +31,7 @@ class Feed2: public Feed
|
||||||
{
|
{
|
||||||
public :
|
public :
|
||||||
Feed2( const std::string& url ) ;
|
Feed2( const std::string& url ) ;
|
||||||
|
~Feed2() ;
|
||||||
bool GetNext( http::Agent *http ) ;
|
bool GetNext( http::Agent *http ) ;
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue