]> Some of my projects - aniplayer.git/commitdiff
Fix warnings
authorAPTX <marek321@gmail.com>
Sun, 25 Nov 2018 10:05:33 +0000 (19:05 +0900)
committerAPTX <marek321@gmail.com>
Sun, 25 Nov 2018 10:05:33 +0000 (19:05 +0900)
core/instancemanager.h
core/settings.h
core/videoelement.h
featureplugins/feature_localmylist/featurelocalmylist.cpp

index 0c2168a6ec60b99e110697914b6f6223e9790484..a4059e35e6414dc444e2dc08b657037f0875d6ce 100644 (file)
@@ -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();
 
index 7dfb91f462a4335f2b2c07ff79444e6b04fb7bdc..ab05a575d886369ae5e8aba884c8748427ad6a51 100644 (file)
@@ -11,7 +11,7 @@ class Settings : public QObject
 {
   Q_OBJECT
 public:
-  explicit Settings(QObject *parent = 0);
+  explicit Settings(QObject *parent = nullptr);
   ~Settings() override;
 
 signals:
index 55cf5bbc470c8f62ace322db9be81cf84423f401..572ff5fde8e998c05e262295f7c64d17d9f08d76 100644 (file)
@@ -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;
index 5e9cbea3e58f0b596588598c96a3c22db5383ca5..a66ba557661d80e47d5f9d1f879c377acbafe913 100644 (file)
@@ -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)));