]> git.sesse.net Git - kdenlive/blobdiff - src/abstractmonitor.cpp
Cleaning code style of Definitions.
[kdenlive] / src / abstractmonitor.cpp
index b1b3875c67577330ec83ba99c481ef58da014660..c4fa50e626d88883af09da68a889bc32709490df 100644 (file)
@@ -29,7 +29,7 @@
 #include <QVBoxLayout>
 
 
-AbstractMonitor::AbstractMonitor(Kdenlive::MONITORID id, MonitorManager *manager, QWidget *parent): 
+AbstractMonitor::AbstractMonitor(Kdenlive::MonitorId id, MonitorManager *manager, QWidget *parent): 
     QWidget(parent),
     videoSurface(NULL),
     m_id(id),
@@ -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"