From af0cdc3a2441996bb29f9c2d8b4ce0dd87a6fcb0 Mon Sep 17 00:00:00 2001 From: Montel Laurent Date: Mon, 13 May 2013 21:02:14 +0200 Subject: [PATCH] Add explicit keyword, const'ref, minor optimization --- src/abstractclipitem.cpp | 2 +- src/abstractclipitem.h | 2 +- src/beziercurve/beziersplineeditor.cpp | 10 ++++++---- src/beziercurve/beziersplineeditor.h | 8 ++++---- src/beziercurve/cubicbezierspline.h | 2 +- src/clipproperties.cpp | 2 +- src/clipproperties.h | 2 +- src/colorcorrection/histogramgenerator.h | 2 +- src/commands/addeffectcommand.cpp | 2 +- src/commands/addeffectcommand.h | 2 +- src/commands/changespeedcommand.cpp | 2 +- src/commands/changespeedcommand.h | 2 +- src/commands/editguidecommand.cpp | 2 +- src/commands/editguidecommand.h | 2 +- src/commands/editkeyframecommand.cpp | 2 +- src/commands/editkeyframecommand.h | 2 +- src/commands/movegroupcommand.cpp | 2 +- src/commands/movegroupcommand.h | 2 +- src/commands/razorclipcommand.cpp | 2 +- src/commands/razorclipcommand.h | 2 +- src/customruler.cpp | 2 +- src/customruler.h | 2 +- src/customtrackscene.cpp | 4 ++-- src/customtrackscene.h | 6 +++--- src/rotoscoping/rotowidget.h | 2 +- src/scopes/audioscopes/audiosignal.h | 2 +- src/scopes/audioscopes/audiospectrum.h | 2 +- src/scopes/colorscopes/histogram.h | 2 +- src/scopes/colorscopes/rgbparade.h | 2 +- src/scopes/colorscopes/vectorscope.h | 2 +- src/scopes/colorscopes/waveform.h | 2 +- src/simplekeyframes/simplekeyframewidget.h | 4 ++-- src/simplekeyframes/simpletimelinewidget.h | 2 +- src/utils/archiveorg.h | 2 +- 34 files changed, 46 insertions(+), 44 deletions(-) diff --git a/src/abstractclipitem.cpp b/src/abstractclipitem.cpp index b333427f..9979b6dd 100644 --- a/src/abstractclipitem.cpp +++ b/src/abstractclipitem.cpp @@ -122,7 +122,7 @@ GenTime AbstractClipItem::cropDuration() const return m_info.cropDuration; } -void AbstractClipItem::setCropStart(GenTime pos) +void AbstractClipItem::setCropStart(const GenTime &pos) { m_info.cropStart = pos; } diff --git a/src/abstractclipitem.h b/src/abstractclipitem.h index 4d26679c..f2a5bed5 100644 --- a/src/abstractclipitem.h +++ b/src/abstractclipitem.h @@ -92,7 +92,7 @@ public: virtual double fps() const; virtual void updateFps(double fps); virtual GenTime maxDuration() const; - virtual void setCropStart(GenTime pos); + virtual void setCropStart(const GenTime &pos); /** @brief Set this clip as the main selected clip (or not). */ void setMainSelectedClip(bool selected); diff --git a/src/beziercurve/beziersplineeditor.cpp b/src/beziercurve/beziersplineeditor.cpp index 89bcdd1e..2ea43830 100644 --- a/src/beziercurve/beziersplineeditor.cpp +++ b/src/beziercurve/beziersplineeditor.cpp @@ -106,11 +106,13 @@ void BezierSplineEditor::slotZoomOut() void BezierSplineEditor::setShowAllHandles(bool show) { - m_showAllHandles = show; - update(); + if (m_showAllHandles != show) { + m_showAllHandles = show; + update(); + } } -int BezierSplineEditor::gridLines() +int BezierSplineEditor::gridLines() const { return m_gridLines; } @@ -461,7 +463,7 @@ void BezierSplineEditor::leaveEvent(QEvent* event) QWidget::leaveEvent(event); } -int BezierSplineEditor::nearestPointInRange(QPointF p, int wWidth, int wHeight, BezierSplineEditor::point_types* sel) +int BezierSplineEditor::nearestPointInRange(const QPointF &p, int wWidth, int wHeight, BezierSplineEditor::point_types* sel) { double nearestDistanceSquared = 1000; point_types selectedPoint = PTypeP; diff --git a/src/beziercurve/beziersplineeditor.h b/src/beziercurve/beziersplineeditor.h index e601e8ed..d0f267ca 100644 --- a/src/beziercurve/beziersplineeditor.h +++ b/src/beziercurve/beziersplineeditor.h @@ -29,8 +29,8 @@ class BezierSplineEditor : public QWidget Q_OBJECT public: - BezierSplineEditor(QWidget* parent = 0); - virtual ~BezierSplineEditor(); + explicit BezierSplineEditor(QWidget* parent = 0); + ~BezierSplineEditor(); CubicBezierSpline spline() const; void setSpline(const CubicBezierSpline &spline); @@ -43,7 +43,7 @@ public: void updateCurrentPoint(const BPoint &p, bool final = true); /** @brief Number of lines used in grid. */ - int gridLines(); + int gridLines() const; /** @brief Sets the number of grid lines to draw (in one direction) to @param lines. */ void setGridLines(int lines); @@ -100,7 +100,7 @@ private: * @param sel Is filled with the type of the closest point (h1, p, h2) * * If no point is near enough -1 is returned. */ - int nearestPointInRange(QPointF p, int wWidth, int wHeight, point_types *sel); + int nearestPointInRange(const QPointF &p, int wWidth, int wHeight, point_types *sel); signals: void modified(); diff --git a/src/beziercurve/cubicbezierspline.h b/src/beziercurve/cubicbezierspline.h index ee21c987..21024bd2 100644 --- a/src/beziercurve/cubicbezierspline.h +++ b/src/beziercurve/cubicbezierspline.h @@ -29,7 +29,7 @@ class CubicBezierSpline : public QObject Q_OBJECT public: - CubicBezierSpline(QObject* parent = 0); + explicit CubicBezierSpline(QObject* parent = 0); CubicBezierSpline(const CubicBezierSpline &spline, QObject* parent = 0); CubicBezierSpline& operator=(const CubicBezierSpline &spline); diff --git a/src/clipproperties.cpp b/src/clipproperties.cpp index 6f5366c6..d2c76470 100644 --- a/src/clipproperties.cpp +++ b/src/clipproperties.cpp @@ -539,7 +539,7 @@ ClipProperties::ClipProperties(DocClipBase *clip, const Timecode &tc, double fps // Used for multiple clips editing -ClipProperties::ClipProperties(QList cliplist, Timecode tc, QMap commonproperties, QWidget * parent) : +ClipProperties::ClipProperties(QList cliplist, const Timecode &tc, QMap commonproperties, QWidget * parent) : QDialog(parent), m_clip(NULL), m_tc(tc), diff --git a/src/clipproperties.h b/src/clipproperties.h index 19b5bc7d..72218789 100644 --- a/src/clipproperties.h +++ b/src/clipproperties.h @@ -48,7 +48,7 @@ class ClipProperties : public QDialog public: ClipProperties(DocClipBase *clip, const Timecode &tc, double fps, QWidget * parent = 0); - ClipProperties(QList cliplist, Timecode tc, QMap commonproperties, QWidget * parent); + ClipProperties(QList cliplist, const Timecode &tc, QMap commonproperties, QWidget * parent); virtual ~ClipProperties(); QMap properties(); const QString &clipId() const; diff --git a/src/colorcorrection/histogramgenerator.h b/src/colorcorrection/histogramgenerator.h index cfce26f4..9e28f0f0 100644 --- a/src/colorcorrection/histogramgenerator.h +++ b/src/colorcorrection/histogramgenerator.h @@ -22,7 +22,7 @@ class QSize; class HistogramGenerator : public QObject { public: - HistogramGenerator(); + explicit HistogramGenerator(); /** Recommendation to use. See http://www.poynton.com/ColorFAQ.html for details. */ diff --git a/src/commands/addeffectcommand.cpp b/src/commands/addeffectcommand.cpp index e720caa1..f858ecb3 100644 --- a/src/commands/addeffectcommand.cpp +++ b/src/commands/addeffectcommand.cpp @@ -23,7 +23,7 @@ #include -AddEffectCommand::AddEffectCommand(CustomTrackView *view, const int track, GenTime pos, const QDomElement &effect, bool doIt, QUndoCommand * parent) : +AddEffectCommand::AddEffectCommand(CustomTrackView *view, const int track, const GenTime &pos, const QDomElement &effect, bool doIt, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_track(track), diff --git a/src/commands/addeffectcommand.h b/src/commands/addeffectcommand.h index 5856a05a..0f01a725 100644 --- a/src/commands/addeffectcommand.h +++ b/src/commands/addeffectcommand.h @@ -31,7 +31,7 @@ class CustomTrackView; class AddEffectCommand : public QUndoCommand { public: - AddEffectCommand(CustomTrackView *view, const int track, GenTime pos, const QDomElement &effect, bool doIt, QUndoCommand * parent = 0); + AddEffectCommand(CustomTrackView *view, const int track, const GenTime &pos, const QDomElement &effect, bool doIt, QUndoCommand * parent = 0); virtual void undo(); virtual void redo(); diff --git a/src/commands/changespeedcommand.cpp b/src/commands/changespeedcommand.cpp index f775c681..67399a91 100644 --- a/src/commands/changespeedcommand.cpp +++ b/src/commands/changespeedcommand.cpp @@ -23,7 +23,7 @@ #include -ChangeSpeedCommand::ChangeSpeedCommand(CustomTrackView *view, ItemInfo info, ItemInfo speedIndependantInfo, double old_speed, double new_speed, int old_strobe, int new_strobe, const QString &clipId, QUndoCommand * parent) : +ChangeSpeedCommand::ChangeSpeedCommand(CustomTrackView *view, const ItemInfo &info, const ItemInfo &speedIndependantInfo, double old_speed, double new_speed, int old_strobe, int new_strobe, const QString &clipId, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_clipInfo(info), diff --git a/src/commands/changespeedcommand.h b/src/commands/changespeedcommand.h index 8adb5fc5..4640f15f 100644 --- a/src/commands/changespeedcommand.h +++ b/src/commands/changespeedcommand.h @@ -33,7 +33,7 @@ class CustomTrackView; class ChangeSpeedCommand : public QUndoCommand { public: - ChangeSpeedCommand(CustomTrackView *view, ItemInfo info, ItemInfo speedIndependantInfo, double old_speed, double new_speed, int old_strobe, int new_strobe, const QString &clipId, QUndoCommand * parent = 0); + ChangeSpeedCommand(CustomTrackView *view, const ItemInfo &info, const ItemInfo &speedIndependantInfo, double old_speed, double new_speed, int old_strobe, int new_strobe, const QString &clipId, QUndoCommand * parent = 0); virtual void undo(); virtual void redo(); diff --git a/src/commands/editguidecommand.cpp b/src/commands/editguidecommand.cpp index 30398da8..7e12a7b3 100644 --- a/src/commands/editguidecommand.cpp +++ b/src/commands/editguidecommand.cpp @@ -21,7 +21,7 @@ #include -EditGuideCommand::EditGuideCommand(CustomTrackView *view, const GenTime oldPos, const QString &oldcomment, const GenTime pos, const QString &comment, bool doIt, QUndoCommand * parent) : +EditGuideCommand::EditGuideCommand(CustomTrackView *view, const GenTime &oldPos, const QString &oldcomment, const GenTime &pos, const QString &comment, bool doIt, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_oldcomment(oldcomment), diff --git a/src/commands/editguidecommand.h b/src/commands/editguidecommand.h index b271220c..189f5e4b 100644 --- a/src/commands/editguidecommand.h +++ b/src/commands/editguidecommand.h @@ -32,7 +32,7 @@ class CustomTrackView; class EditGuideCommand : public QUndoCommand { public: - EditGuideCommand(CustomTrackView *view, const GenTime oldPos, const QString &oldcomment, const GenTime pos, const QString &comment, bool doIt, QUndoCommand * parent = 0); + EditGuideCommand(CustomTrackView *view, const GenTime &oldPos, const QString &oldcomment, const GenTime &pos, const QString &comment, bool doIt, QUndoCommand * parent = 0); virtual void undo(); virtual void redo(); diff --git a/src/commands/editkeyframecommand.cpp b/src/commands/editkeyframecommand.cpp index 29c341ca..64b7a29d 100644 --- a/src/commands/editkeyframecommand.cpp +++ b/src/commands/editkeyframecommand.cpp @@ -21,7 +21,7 @@ #include -EditKeyFrameCommand::EditKeyFrameCommand(CustomTrackView *view, const int track, GenTime pos, const int effectIndex, const QString& oldkeyframes, const QString& newkeyframes, bool doIt) : +EditKeyFrameCommand::EditKeyFrameCommand(CustomTrackView *view, const int track, const GenTime &pos, const int effectIndex, const QString& oldkeyframes, const QString& newkeyframes, bool doIt) : QUndoCommand(), m_view(view), m_oldkfr(oldkeyframes), diff --git a/src/commands/editkeyframecommand.h b/src/commands/editkeyframecommand.h index e35603fa..2a2b5b2b 100644 --- a/src/commands/editkeyframecommand.h +++ b/src/commands/editkeyframecommand.h @@ -32,7 +32,7 @@ class CustomTrackView; class EditKeyFrameCommand : public QUndoCommand { public: - EditKeyFrameCommand(CustomTrackView *view, const int track, GenTime pos, const int effectIndex, const QString& oldkeyframes, const QString& newkeyframes, bool doIt); + EditKeyFrameCommand(CustomTrackView *view, const int track, const GenTime &pos, const int effectIndex, const QString& oldkeyframes, const QString& newkeyframes, bool doIt); virtual void undo(); virtual void redo(); diff --git a/src/commands/movegroupcommand.cpp b/src/commands/movegroupcommand.cpp index ecfe2519..efc0f3e8 100644 --- a/src/commands/movegroupcommand.cpp +++ b/src/commands/movegroupcommand.cpp @@ -23,7 +23,7 @@ #include -MoveGroupCommand::MoveGroupCommand(CustomTrackView *view, const QList &startClip, const QList &startTransition, const GenTime offset, const int trackOffset, bool doIt, QUndoCommand * parent) : +MoveGroupCommand::MoveGroupCommand(CustomTrackView *view, const QList &startClip, const QList &startTransition, const GenTime &offset, const int trackOffset, bool doIt, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_startClip(startClip), diff --git a/src/commands/movegroupcommand.h b/src/commands/movegroupcommand.h index 66f8d26e..c2df2644 100644 --- a/src/commands/movegroupcommand.h +++ b/src/commands/movegroupcommand.h @@ -30,7 +30,7 @@ class CustomTrackView; class MoveGroupCommand : public QUndoCommand { public: - MoveGroupCommand(CustomTrackView *view, const QList &startClip, const QList &startTransition, const GenTime offset, const int trackOffset, bool doIt, QUndoCommand * parent = 0); + MoveGroupCommand(CustomTrackView *view, const QList &startClip, const QList &startTransition, const GenTime &offset, const int trackOffset, bool doIt, QUndoCommand * parent = 0); virtual void undo(); virtual void redo(); diff --git a/src/commands/razorclipcommand.cpp b/src/commands/razorclipcommand.cpp index 53257ebb..07af951c 100644 --- a/src/commands/razorclipcommand.cpp +++ b/src/commands/razorclipcommand.cpp @@ -23,7 +23,7 @@ #include -RazorClipCommand::RazorClipCommand(CustomTrackView *view, const ItemInfo &info, EffectsList stack, const GenTime cutTime, bool doIt, QUndoCommand * parent) : +RazorClipCommand::RazorClipCommand(CustomTrackView *view, const ItemInfo &info, EffectsList stack, const GenTime &cutTime, bool doIt, QUndoCommand * parent) : QUndoCommand(parent), m_view(view), m_info(info), diff --git a/src/commands/razorclipcommand.h b/src/commands/razorclipcommand.h index 0da865ac..1f01cd20 100644 --- a/src/commands/razorclipcommand.h +++ b/src/commands/razorclipcommand.h @@ -33,7 +33,7 @@ class CustomTrackView; class RazorClipCommand : public QUndoCommand { public: - RazorClipCommand(CustomTrackView *view, const ItemInfo &info, EffectsList stack, const GenTime cutTime, bool doIt = true, QUndoCommand * parent = 0); + RazorClipCommand(CustomTrackView *view, const ItemInfo &info, EffectsList stack, const GenTime &cutTime, bool doIt = true, QUndoCommand * parent = 0); virtual void undo(); virtual void redo(); diff --git a/src/customruler.cpp b/src/customruler.cpp index 54cafd6a..b7126ae0 100644 --- a/src/customruler.cpp +++ b/src/customruler.cpp @@ -50,7 +50,7 @@ static int bigMarkDistance; const int CustomRuler::comboScale[] = { 1, 2, 5, 10, 25, 50, 125, 250, 500, 750, 1500, 3000, 6000, 12000}; -CustomRuler::CustomRuler(Timecode tc, CustomTrackView *parent) : +CustomRuler::CustomRuler(const Timecode &tc, CustomTrackView *parent) : QWidget(parent), m_timecode(tc), m_view(parent), diff --git a/src/customruler.h b/src/customruler.h index f7ba21bd..1bebf0b3 100644 --- a/src/customruler.h +++ b/src/customruler.h @@ -39,7 +39,7 @@ class CustomRuler : public QWidget Q_OBJECT public: - CustomRuler(Timecode tc, CustomTrackView *parent); + CustomRuler(const Timecode &tc, CustomTrackView *parent); void setPixelPerMark(int rate); static const int comboScale[]; int outPoint() const; diff --git a/src/customtrackscene.cpp b/src/customtrackscene.cpp index ba243695..44e1a9bf 100644 --- a/src/customtrackscene.cpp +++ b/src/customtrackscene.cpp @@ -55,7 +55,7 @@ void CustomTrackScene::setSnapList(const QList & snaps) m_snapPoints = snaps; } -GenTime CustomTrackScene::previousSnapPoint(GenTime pos) const +GenTime CustomTrackScene::previousSnapPoint(const GenTime &pos) const { for (int i = 0; i < m_snapPoints.size(); ++i) { if (m_snapPoints.at(i) >= pos) { @@ -66,7 +66,7 @@ GenTime CustomTrackScene::previousSnapPoint(GenTime pos) const return GenTime(); } -GenTime CustomTrackScene::nextSnapPoint(GenTime pos) const +GenTime CustomTrackScene::nextSnapPoint(const GenTime &pos) const { for (int i = 0; i < m_snapPoints.size(); ++i) { if (m_snapPoints.at(i) > pos) { diff --git a/src/customtrackscene.h b/src/customtrackscene.h index ade17bc5..c9506568 100644 --- a/src/customtrackscene.h +++ b/src/customtrackscene.h @@ -43,10 +43,10 @@ class CustomTrackScene : public QGraphicsScene public: explicit CustomTrackScene(KdenliveDoc *doc, QObject *parent = 0); - virtual ~ CustomTrackScene(); + ~CustomTrackScene(); void setSnapList(const QList & snaps); - GenTime previousSnapPoint(GenTime pos) const; - GenTime nextSnapPoint(GenTime pos) const; + GenTime previousSnapPoint(const GenTime &pos) const; + GenTime nextSnapPoint(const GenTime &pos) const; double getSnapPointForPos(double pos, bool doSnap = true); void setScale(double scale, double vscale); QPointF scale() const; diff --git a/src/rotoscoping/rotowidget.h b/src/rotoscoping/rotowidget.h index 99523b8b..444d673e 100644 --- a/src/rotoscoping/rotowidget.h +++ b/src/rotoscoping/rotowidget.h @@ -43,7 +43,7 @@ class RotoWidget : public QWidget public: RotoWidget(const QString &data, Monitor *monitor, const ItemInfo &info, const Timecode &t, QWidget* parent = 0); - virtual ~RotoWidget(); + ~RotoWidget(); /** @brief Returns the spline(s) in the JSON format used by filter_rotoscoping (MLT). */ QString getSpline(); diff --git a/src/scopes/audioscopes/audiosignal.h b/src/scopes/audioscopes/audiosignal.h index 9c057fff..bf8b7a67 100644 --- a/src/scopes/audioscopes/audiosignal.h +++ b/src/scopes/audioscopes/audiosignal.h @@ -35,7 +35,7 @@ class AudioSignal : public AbstractAudioScopeWidget { Q_OBJECT public: - AudioSignal(QWidget *parent = 0); + explicit AudioSignal(QWidget *parent = 0); ~AudioSignal(); /** @brief Used for checking whether audio data needs to be delivered */ bool monitoringEnabled() const; diff --git a/src/scopes/audioscopes/audiospectrum.h b/src/scopes/audioscopes/audiospectrum.h index b8e93578..94c8b294 100644 --- a/src/scopes/audioscopes/audiospectrum.h +++ b/src/scopes/audioscopes/audiospectrum.h @@ -40,7 +40,7 @@ class AudioSpectrum : public AbstractAudioScopeWidget { Q_OBJECT public: - AudioSpectrum(QWidget *parent = 0); + explicit AudioSpectrum(QWidget *parent = 0); ~AudioSpectrum(); // Implemented virtual methods diff --git a/src/scopes/colorscopes/histogram.h b/src/scopes/colorscopes/histogram.h index 85a954a2..f2b4dd3a 100644 --- a/src/scopes/colorscopes/histogram.h +++ b/src/scopes/colorscopes/histogram.h @@ -23,7 +23,7 @@ class Histogram : public AbstractGfxScopeWidget { Q_OBJECT public: - Histogram(QWidget *parent = 0); + explicit Histogram(QWidget *parent = 0); ~Histogram(); QString widgetName() const; diff --git a/src/scopes/colorscopes/rgbparade.h b/src/scopes/colorscopes/rgbparade.h index 1d6a3c6d..6fadd353 100644 --- a/src/scopes/colorscopes/rgbparade.h +++ b/src/scopes/colorscopes/rgbparade.h @@ -26,7 +26,7 @@ class RGBParadeGenerator; class RGBParade : public AbstractGfxScopeWidget { public: - RGBParade(QWidget *parent = 0); + explicit RGBParade(QWidget *parent = 0); ~RGBParade(); QString widgetName() const; diff --git a/src/scopes/colorscopes/vectorscope.h b/src/scopes/colorscopes/vectorscope.h index adeba60a..51166633 100644 --- a/src/scopes/colorscopes/vectorscope.h +++ b/src/scopes/colorscopes/vectorscope.h @@ -32,7 +32,7 @@ class Vectorscope : public AbstractGfxScopeWidget { Q_OBJECT public: - Vectorscope(QWidget *parent = 0); + explicit Vectorscope(QWidget *parent = 0); ~Vectorscope(); QString widgetName() const; diff --git a/src/scopes/colorscopes/waveform.h b/src/scopes/colorscopes/waveform.h index 2455f817..05950dbd 100644 --- a/src/scopes/colorscopes/waveform.h +++ b/src/scopes/colorscopes/waveform.h @@ -27,7 +27,7 @@ class Waveform : public AbstractGfxScopeWidget { Q_OBJECT public: - Waveform(QWidget *parent = 0); + explicit Waveform(QWidget *parent = 0); ~Waveform(); virtual QString widgetName() const; diff --git a/src/simplekeyframes/simplekeyframewidget.h b/src/simplekeyframes/simplekeyframewidget.h index d9553ba6..5564e0ac 100644 --- a/src/simplekeyframes/simplekeyframewidget.h +++ b/src/simplekeyframes/simplekeyframewidget.h @@ -34,8 +34,8 @@ class SimpleKeyframeWidget : public QWidget Q_OBJECT public: - SimpleKeyframeWidget(const Timecode &t, int duration, QWidget* parent = 0); - virtual ~SimpleKeyframeWidget(); + explicit SimpleKeyframeWidget(const Timecode &t, int duration, QWidget* parent = 0); + ~SimpleKeyframeWidget(); int getPosition(); void setKeyframes(const QList &keyframes); diff --git a/src/simplekeyframes/simpletimelinewidget.h b/src/simplekeyframes/simpletimelinewidget.h index 25dbde97..43111453 100644 --- a/src/simplekeyframes/simpletimelinewidget.h +++ b/src/simplekeyframes/simpletimelinewidget.h @@ -27,7 +27,7 @@ class SimpleTimelineWidget : public QWidget Q_OBJECT public: - SimpleTimelineWidget(QWidget* parent = 0); + explicit SimpleTimelineWidget(QWidget* parent = 0); void setKeyframes(const QList & keyframes); void setDuration(int dur); diff --git a/src/utils/archiveorg.h b/src/utils/archiveorg.h index e601c814..a00e4b1e 100644 --- a/src/utils/archiveorg.h +++ b/src/utils/archiveorg.h @@ -35,7 +35,7 @@ class ArchiveOrg : public AbstractService public: explicit ArchiveOrg(QListWidget *listWidget, QObject * parent = 0); - ~ArchiveOrg(); + virtual ~ArchiveOrg(); virtual QString getExtension(QListWidgetItem *item); virtual QString getDefaultDownloadName(QListWidgetItem *item); -- 2.39.2