mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -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)
|
bool YACReaderHttpSession::isComicOnDevice(const QString & hash)
|
||||||
{
|
{
|
||||||
return comicsOnDevice.contains(hash);
|
return comicsOnDevice.contains(hash);
|
||||||
|
@ -12,6 +12,7 @@ class YACReaderHttpSession : public QObject
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit YACReaderHttpSession(QObject *parent = 0);
|
explicit YACReaderHttpSession(QObject *parent = 0);
|
||||||
|
~YACReaderHttpSession();
|
||||||
|
|
||||||
void setComicsOnDevice(const QSet<QString> & set);
|
void setComicsOnDevice(const QSet<QString> & set);
|
||||||
void setComicOnDevice(const QString & hash);
|
void setComicOnDevice(const QString & hash);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user