Commit 8fc16957 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use const'ref.

Remove not necessary ";"
Fix includes
parent 1ea8ebcf
......@@ -41,8 +41,7 @@ AbstractMonitor::AbstractMonitor(Kdenlive::MONITORID id, MonitorManager *manager
AbstractMonitor::~AbstractMonitor()
{
if (videoSurface)
delete videoSurface;
delete videoSurface;
}
void AbstractMonitor::createVideoSurface()
......
......@@ -26,9 +26,7 @@
#include <QVector>
#include <QWidget>
#include <QImage>
#include <QPainter>
#include <QFrame>
#include <QTimer>
#include <stdint.h>
......@@ -43,10 +41,10 @@ Q_OBJECT public:
* @param name A unique identifier for this renderer
* @param winid The parent widget identifier (required for SDL display). Set to 0 for OpenGL rendering
* @param profile The MLT profile used for the renderer (default one will be used if empty). */
explicit AbstractRender(Kdenlive::MONITORID name, QWidget *parent = 0):QObject(parent), sendFrameForAnalysis(false), analyseAudio(false), m_name(name) {};
explicit AbstractRender(Kdenlive::MONITORID name, QWidget *parent = 0):QObject(parent), sendFrameForAnalysis(false), analyseAudio(false), m_name(name) {}
/** @brief Destroy the MLT Renderer. */
virtual ~AbstractRender() {};
virtual ~AbstractRender() {}
/** @brief This property is used to decide if the renderer should convert it's frames to QImage for use in other Kdenlive widgets. */
bool sendFrameForAnalysis;
......@@ -54,7 +52,7 @@ Q_OBJECT public:
/** @brief This property is used to decide if the renderer should send audio data for monitoring. */
bool analyseAudio;
const QString &name() const {return m_name;};
const QString &name() const {return m_name;}
/** @brief Someone needs us to send again a frame. */
virtual void sendFrameUpdate() = 0;
......
......@@ -39,8 +39,9 @@
#include <QApplication>
#include <QtConcurrentRun>
#include <QVarLengthArray>
#include <QPainter>
KThumb::KThumb(ClipManager *clipManager, KUrl url, const QString &id, const QString &hash, QObject * parent) :
KThumb::KThumb(ClipManager *clipManager, const KUrl &url, const QString &id, const QString &hash, QObject * parent) :
QObject(parent),
m_url(url),
m_thumbFile(),
......
......@@ -50,10 +50,10 @@ typedef QMap <int, QMap <int, QByteArray> > audioByteArray;
class KThumb: public QObject
{
Q_OBJECT public:
Q_OBJECT
public:
KThumb(ClipManager *clipManager, KUrl url, const QString &id, const QString &hash, QObject * parent = 0);
KThumb(ClipManager *clipManager, const KUrl &url, const QString &id, const QString &hash, QObject * parent = 0);
~KThumb();
void setProducer(Mlt::Producer *producer);
bool hasProducer() const;
......
......@@ -33,6 +33,7 @@
#include <QString>
#include <QApplication>
#include <QThread>
#include <QTimer>
#include <cstdlib>
#include <cstdarg>
......
......@@ -30,7 +30,8 @@
#include <mlt/framework/mlt_types.h>
#include <QtConcurrentRun>
#include <QTimer>
namespace Mlt
{
class Consumer;
......
......@@ -45,8 +45,8 @@
#include <QMutex>
#include <QFuture>
#include <QSemaphore>
#include <QTimer>
class QTimer;
class QPixmap;
class KComboBox;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment