]> git.sesse.net Git - kdenlive/blobdiff - src/abstractmonitor.cpp
fix gcc warnings
[kdenlive] / src / abstractmonitor.cpp
index b1b3875c67577330ec83ba99c481ef58da014660..8593157ee21da72d8d5ab2d36599651897ae4627 100644 (file)
@@ -41,8 +41,7 @@ AbstractMonitor::AbstractMonitor(Kdenlive::MONITORID id, MonitorManager *manager
 
 AbstractMonitor::~AbstractMonitor()
 {
-    if (videoSurface)
-       delete videoSurface;
+    delete videoSurface;
 }
 
 void AbstractMonitor::createVideoSurface()
@@ -174,9 +173,11 @@ VideoSurface::VideoSurface(QWidget* parent) :
 
 void VideoSurface::paintEvent(QPaintEvent *event)
 {
-    Q_UNUSED(event);
+    Q_UNUSED(event)
     //WARNING: This might trigger unnecessary refreshes from MLT's producer, but without this,
     // as soon as monitor is covered by a popup menu or another window, image is corrupted.
     emit refreshMonitor();
 }
 
+
+#include "abstractmonitor.moc"