From ecd149737005860296ae3137ce8bc09a985c7118 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Fri, 1 Oct 2021 19:49:21 +0200 Subject: [PATCH] Don't use virtual methods unnecessarily --- common/comic.cpp | 6 +++--- common/comic.h | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/common/comic.cpp b/common/comic.cpp index e80f09c3..afcd5119 100644 --- a/common/comic.cpp +++ b/common/comic.cpp @@ -352,7 +352,7 @@ FileComic::FileComic() FileComic::FileComic(const QString &path, int atPage) : Comic(path, atPage) { - load(path, atPage); + FileComic::load(path, atPage); } FileComic::~FileComic() @@ -649,7 +649,7 @@ FolderComic::FolderComic() FolderComic::FolderComic(const QString &path, int atPage) : Comic(path, atPage) { - load(path, atPage); + FolderComic::load(path, atPage); } FolderComic::~FolderComic() @@ -745,7 +745,7 @@ PDFComic::PDFComic() PDFComic::PDFComic(const QString &path, int atPage) : Comic(path, atPage) { - load(path, atPage); + PDFComic::load(path, atPage); } PDFComic::~PDFComic() diff --git a/common/comic.h b/common/comic.h index cf83d4de..a64da6f5 100644 --- a/common/comic.h +++ b/common/comic.h @@ -123,8 +123,8 @@ public: FileComic(); FileComic(const QString &path, int atPage = -1); ~FileComic(); - virtual bool load(const QString &path, int atPage = -1); - virtual bool load(const QString &path, const ComicDB &comic); + bool load(const QString &path, int atPage = -1); + bool load(const QString &path, const ComicDB &comic); static QList filter(const QList &src); // ExtractDelegate @@ -150,7 +150,7 @@ public: FolderComic(const QString &path, int atPage = -1); ~FolderComic(); - virtual bool load(const QString &path, int atPage = -1); + bool load(const QString &path, int atPage = -1); public slots: @@ -179,8 +179,8 @@ public: PDFComic(const QString &path, int atPage = -1); ~PDFComic(); - virtual bool load(const QString &path, int atPage = -1); - virtual bool load(const QString &path, const ComicDB &comic); + bool load(const QString &path, int atPage = -1); + bool load(const QString &path, const ComicDB &comic); public slots: