mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Added destructor to YACReaderHttpSession
This commit is contained in:
parent
d29719a98d
commit
0f247d8641
@ -6,6 +6,15 @@ YACReaderHttpSession::YACReaderHttpSession(QObject *parent)
|
||||
|
||||
}
|
||||
|
||||
YACReaderHttpSession::~YACReaderHttpSession()
|
||||
{
|
||||
if(comic != nullptr)
|
||||
delete comic;
|
||||
|
||||
if(remoteComic != nullptr)
|
||||
delete remoteComic;
|
||||
}
|
||||
|
||||
bool YACReaderHttpSession::isComicOnDevice(const QString & hash)
|
||||
{
|
||||
return comicsOnDevice.contains(hash);
|
||||
|
@ -12,6 +12,7 @@ class YACReaderHttpSession : public QObject
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit YACReaderHttpSession(QObject *parent = 0);
|
||||
~YACReaderHttpSession();
|
||||
|
||||
void setComicsOnDevice(const QSet<QString> & set);
|
||||
void setComicOnDevice(const QString & hash);
|
||||
|
Loading…
Reference in New Issue
Block a user