From: APTX Date: Sun, 25 Nov 2018 10:05:33 +0000 (+0900) Subject: Fix warnings X-Git-Url: https://gitweb.tyo.aptx.org/?a=commitdiff_plain;h=c43f47bb8e844781f47f0d810872048f6c1c9224;p=aniplayer.git Fix warnings --- diff --git a/core/instancemanager.h b/core/instancemanager.h index 0c2168a..a4059e3 100644 --- a/core/instancemanager.h +++ b/core/instancemanager.h @@ -14,7 +14,7 @@ class PluginManager; class InstanceManager : public QObject { Q_OBJECT public: - explicit InstanceManager(QObject *parent = 0); + explicit InstanceManager(QObject *parent = nullptr); void startFirstInstance(); diff --git a/core/settings.h b/core/settings.h index 7dfb91f..ab05a57 100644 --- a/core/settings.h +++ b/core/settings.h @@ -11,7 +11,7 @@ class Settings : public QObject { Q_OBJECT public: - explicit Settings(QObject *parent = 0); + explicit Settings(QObject *parent = nullptr); ~Settings() override; signals: diff --git a/core/videoelement.h b/core/videoelement.h index 55cf5bb..572ff5f 100644 --- a/core/videoelement.h +++ b/core/videoelement.h @@ -15,7 +15,7 @@ class VideoElement : public QQuickFramebufferObject, class Renderer : public QQuickFramebufferObject::Renderer { public: - ~Renderer(); + ~Renderer() override; void render() override; void synchronize(QQuickFramebufferObject *object) override; @@ -29,7 +29,7 @@ class VideoElement : public QQuickFramebufferObject, public: VideoElement(); - ~VideoElement(); + ~VideoElement() override; Renderer *createRenderer() const override; Player *source() const; diff --git a/featureplugins/feature_localmylist/featurelocalmylist.cpp b/featureplugins/feature_localmylist/featurelocalmylist.cpp index 5e9cbea..a66ba55 100644 --- a/featureplugins/feature_localmylist/featurelocalmylist.cpp +++ b/featureplugins/feature_localmylist/featurelocalmylist.cpp @@ -93,6 +93,7 @@ double FeatureLocalMyListInstance::readDuration(QObject *obj) { FeatureLocalMyListInstance::FeatureLocalMyListInstance( QObject *instance, PlayerFeaturePlauginInterface *player, QObject *parent) : FeaturePluginInstance{instance, player} { + Q_UNUSED(parent); qCDebug(lmlCategory) << "Registering with instance" << instance; connect(instance, SIGNAL(currentSourceChanged(QUrl)), this, SLOT(sourceChanged(QUrl)));