mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Don't use virtual methods unnecessarily
This commit is contained in:
parent
db433be88c
commit
ecd1497370
@ -352,7 +352,7 @@ FileComic::FileComic()
|
|||||||
FileComic::FileComic(const QString &path, int atPage)
|
FileComic::FileComic(const QString &path, int atPage)
|
||||||
: Comic(path, atPage)
|
: Comic(path, atPage)
|
||||||
{
|
{
|
||||||
load(path, atPage);
|
FileComic::load(path, atPage);
|
||||||
}
|
}
|
||||||
|
|
||||||
FileComic::~FileComic()
|
FileComic::~FileComic()
|
||||||
@ -649,7 +649,7 @@ FolderComic::FolderComic()
|
|||||||
FolderComic::FolderComic(const QString &path, int atPage)
|
FolderComic::FolderComic(const QString &path, int atPage)
|
||||||
: Comic(path, atPage)
|
: Comic(path, atPage)
|
||||||
{
|
{
|
||||||
load(path, atPage);
|
FolderComic::load(path, atPage);
|
||||||
}
|
}
|
||||||
|
|
||||||
FolderComic::~FolderComic()
|
FolderComic::~FolderComic()
|
||||||
@ -745,7 +745,7 @@ PDFComic::PDFComic()
|
|||||||
PDFComic::PDFComic(const QString &path, int atPage)
|
PDFComic::PDFComic(const QString &path, int atPage)
|
||||||
: Comic(path, atPage)
|
: Comic(path, atPage)
|
||||||
{
|
{
|
||||||
load(path, atPage);
|
PDFComic::load(path, atPage);
|
||||||
}
|
}
|
||||||
|
|
||||||
PDFComic::~PDFComic()
|
PDFComic::~PDFComic()
|
||||||
|
@ -123,8 +123,8 @@ public:
|
|||||||
FileComic();
|
FileComic();
|
||||||
FileComic(const QString &path, int atPage = -1);
|
FileComic(const QString &path, int atPage = -1);
|
||||||
~FileComic();
|
~FileComic();
|
||||||
virtual bool load(const QString &path, int atPage = -1);
|
bool load(const QString &path, int atPage = -1);
|
||||||
virtual bool load(const QString &path, const ComicDB &comic);
|
bool load(const QString &path, const ComicDB &comic);
|
||||||
static QList<QString> filter(const QList<QString> &src);
|
static QList<QString> filter(const QList<QString> &src);
|
||||||
|
|
||||||
// ExtractDelegate
|
// ExtractDelegate
|
||||||
@ -150,7 +150,7 @@ public:
|
|||||||
FolderComic(const QString &path, int atPage = -1);
|
FolderComic(const QString &path, int atPage = -1);
|
||||||
~FolderComic();
|
~FolderComic();
|
||||||
|
|
||||||
virtual bool load(const QString &path, int atPage = -1);
|
bool load(const QString &path, int atPage = -1);
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|
||||||
@ -179,8 +179,8 @@ public:
|
|||||||
PDFComic(const QString &path, int atPage = -1);
|
PDFComic(const QString &path, int atPage = -1);
|
||||||
~PDFComic();
|
~PDFComic();
|
||||||
|
|
||||||
virtual bool load(const QString &path, int atPage = -1);
|
bool load(const QString &path, int atPage = -1);
|
||||||
virtual bool load(const QString &path, const ComicDB &comic);
|
bool load(const QString &path, const ComicDB &comic);
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user