]> git.sesse.net Git - kdenlive/blobdiff - src/abstractmonitor.cpp
Const'ref
[kdenlive] / src / abstractmonitor.cpp
index b1b3875c67577330ec83ba99c481ef58da014660..eac998a99784ae16d177404a9011031ef7d0d1a5 100644 (file)
@@ -41,8 +41,7 @@ AbstractMonitor::AbstractMonitor(Kdenlive::MONITORID id, MonitorManager *manager
 
 AbstractMonitor::~AbstractMonitor()
 {
-    if (videoSurface)
-       delete videoSurface;
+    delete videoSurface;
 }
 
 void AbstractMonitor::createVideoSurface()
@@ -180,3 +179,5 @@ void VideoSurface::paintEvent(QPaintEvent *event)
     emit refreshMonitor();
 }
 
+
+#include "abstractmonitor.moc"