]> git.sesse.net Git - kdenlive/commitdiff
const'ref
authorMontel Laurent <montel@kde.org>
Mon, 13 May 2013 07:45:50 +0000 (09:45 +0200)
committerMontel Laurent <montel@kde.org>
Mon, 13 May 2013 07:45:50 +0000 (09:45 +0200)
26 files changed:
src/beziercurve/bpoint.cpp
src/beziercurve/bpoint.h
src/commands/addmarkercommand.cpp
src/commands/addmarkercommand.h
src/commands/addtrackcommand.cpp
src/commands/addtrackcommand.h
src/commands/addtransitioncommand.cpp
src/commands/addtransitioncommand.h
src/commands/changeeffectstatecommand.cpp
src/commands/changeeffectstatecommand.h
src/commands/editeffectcommand.cpp
src/commands/editeffectcommand.h
src/commands/edittransitioncommand.cpp
src/commands/edittransitioncommand.h
src/commands/moveclipcommand.cpp
src/commands/moveclipcommand.h
src/commands/moveeffectcommand.cpp
src/commands/moveeffectcommand.h
src/commands/movetransitioncommand.cpp
src/commands/movetransitioncommand.h
src/commands/rebuildgroupcommand.cpp
src/commands/rebuildgroupcommand.h
src/commands/resizeclipcommand.cpp
src/commands/resizeclipcommand.h
src/commands/splitaudiocommand.cpp
src/commands/splitaudiocommand.h

index 2618254e9a34b68b7ba048deeda994a1ae56a384..d45488dfa63b9de7253b0e21ca56e19ab49b8288 100644 (file)
@@ -27,7 +27,7 @@ BPoint::BPoint() :
 {
 }
 
-BPoint::BPoint(QPointF handle1, QPointF point, QPointF handle2) :
+BPoint::BPoint(const QPointF &handle1, const QPointF &point, const QPointF &handle2) :
         h1(handle1),
         p(point),
         h2(handle2)
@@ -52,7 +52,7 @@ bool BPoint::operator==(const BPoint& point) const
                 point.h2 == h2;
 }
 
-void BPoint::setP(QPointF point, bool updateHandles)
+void BPoint::setP(const QPointF &point, bool updateHandles)
 {
     QPointF offset = point - p;
     p = point;
@@ -62,7 +62,7 @@ void BPoint::setP(QPointF point, bool updateHandles)
     }
 }
 
-void BPoint::setH1(QPointF handle1)
+void BPoint::setH1(const QPointF &handle1)
 {
     h1 = handle1;
     if (handlesLinked) {
@@ -73,7 +73,7 @@ void BPoint::setH1(QPointF handle1)
     }    
 }
 
-void BPoint::setH2(QPointF handle2)
+void BPoint::setH2(const QPointF &handle2)
 {
     h2 = handle2;
     if (handlesLinked) {
index 2bd1fa29121babdd76d1a40f2a9c12441da3810a..995496cc834b6d22f83480ac24ca9af6bab07f60 100644 (file)
@@ -31,7 +31,7 @@ public:
     /** @brief Sets the point to -1, -1 to mark it as unusable (until point + handles have proper values) */
     BPoint();
     /** @brief Sets up according to the params. Linking detecting is done using autoSetLinked(). */
-    BPoint(QPointF handle1, QPointF point, QPointF handle2);
+    BPoint(const QPointF &handle1, const QPointF &point, const QPointF &handle2);
 
     /** @brief Returns h1 if i = 0, p if i = 1, h2 if i = 2. */
     QPointF &operator[](int i);
@@ -41,17 +41,17 @@ public:
 
     /** @brief Sets p to @param point.
      * @param updateHandles (default = true) Whether to make sure the handles keep their position relative to p. */
-    void setP(QPointF point, bool updateHandles = true);
+    void setP(const QPointF &point, bool updateHandles = true);
 
     /** @brief Sets h1 to @param handle1.
      *
      * If handlesLinked is true h2 is updated. */
-    void setH1(QPointF handle1);
+    void setH1(const QPointF  &handle1);
 
     /** @brief Sets h2 to @param handle2.
      * 
      * If handlesLinked is true h1 is updated. */
-    void setH2(QPointF handle2);
+    void setH2(const QPointF &handle2);
     void keepInRange(qreal xMin, qreal xMax);
 
     /** @brief Sets handlesLinked to true if the handles are in a linked state (line through h1, p, h2) otherwise to false. */
index 376ff81e2521df324de65b228cb38259d4297f52..f315f3f49ad5bb7ed28141069e40f4726a52fc3b 100644 (file)
@@ -21,7 +21,7 @@
 
 #include <KLocale>
 
-AddMarkerCommand::AddMarkerCommand(CustomTrackView *view, const CommentedTime oldMarker, const CommentedTime newMarker, const QString &id, QUndoCommand * parent) :
+AddMarkerCommand::AddMarkerCommand(CustomTrackView *view, const CommentedTime &oldMarker, const CommentedTime &newMarker, const QString &id, QUndoCommand * parent) :
         QUndoCommand(parent),
         m_view(view),
         m_oldMarker(oldMarker),
index 12ef595d5625f9cc0ebd78356f9582314ad185ec..f89ca9370727b962850eb6a56fb6cb3a04c72204 100644 (file)
@@ -32,7 +32,7 @@ class CustomTrackView;
 class AddMarkerCommand : public QUndoCommand
 {
 public:
-    AddMarkerCommand(CustomTrackView *view, const CommentedTime oldMarker, const CommentedTime newMarker, const QString &id, QUndoCommand * parent = 0);
+    AddMarkerCommand(CustomTrackView *view, const CommentedTime &oldMarker, const CommentedTime &newMarker, const QString &id, QUndoCommand * parent = 0);
     virtual void undo();
     virtual void redo();
 
index fa8b5692ea5f44f2a9cf2e298c2622374ecba366..135139f5ea463cfdaac44d89d3df087c0a78dafb 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <KLocale>
 
-AddTrackCommand::AddTrackCommand(CustomTrackView *view, int ix, TrackInfo info, bool addTrack, QUndoCommand * parent) :
+AddTrackCommand::AddTrackCommand(CustomTrackView *view, int ix, const TrackInfo &info, bool addTrack, QUndoCommand * parent) :
         QUndoCommand(parent),
         m_view(view),
         m_ix(ix),
index 3e54191d50a93973e54482ba67c86608d5942a2c..acb4f4801bca063439a7824656114531088501c7 100644 (file)
@@ -33,7 +33,7 @@ class CustomTrackView;
 class AddTrackCommand : public QUndoCommand
 {
 public:
-    AddTrackCommand(CustomTrackView *view, int ix, TrackInfo info, bool addTrack, QUndoCommand * parent = 0);
+    AddTrackCommand(CustomTrackView *view, int ix, const TrackInfo &info, bool addTrack, QUndoCommand * parent = 0);
     virtual void undo();
     virtual void redo();
 
index 22912c325f9f5a9f1c06170c7dd271e6bfc60280..6e372bb26af5c0b9c6eab00b0976e988afec6eca 100644 (file)
@@ -21,7 +21,7 @@
 
 #include <KLocale>
 
-AddTransitionCommand::AddTransitionCommand(CustomTrackView *view, ItemInfo info, int transitiontrack, const QDomElement &params, bool remove, bool doIt, QUndoCommand * parent) :
+AddTransitionCommand::AddTransitionCommand(CustomTrackView *view, const ItemInfo &info, int transitiontrack, const QDomElement &params, bool remove, bool doIt, QUndoCommand * parent) :
         QUndoCommand(parent),
         m_view(view),
         m_info(info),
index 5a5a6f547e720b87df305849137709226ac56e2d..5531b79cee6895585ab49a4d27260966adae0d15 100644 (file)
@@ -32,7 +32,7 @@ class CustomTrackView;
 class AddTransitionCommand : public QUndoCommand
 {
 public:
-    AddTransitionCommand(CustomTrackView *view, ItemInfo info, int transitiontrack, const QDomElement &params, bool remove, bool doIt, QUndoCommand * parent = 0);
+    AddTransitionCommand(CustomTrackView *view, const ItemInfo &info, int transitiontrack, const QDomElement &params, bool remove, bool doIt, QUndoCommand * parent = 0);
     virtual void undo();
     virtual void redo();
 
index d62d02befaec9add87b024f90da82913c83610f0..49269f84004084b33d40d134a957e3ff12ade2c4 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <KLocale>
 
-ChangeEffectStateCommand::ChangeEffectStateCommand(CustomTrackView *view, const int track, GenTime pos, const QList <int>& effectIndexes, bool disable, bool refreshEffectStack, bool doIt, QUndoCommand *parent) :
+ChangeEffectStateCommand::ChangeEffectStateCommand(CustomTrackView *view, const int track, const GenTime& pos, const QList <int>& effectIndexes, bool disable, bool refreshEffectStack, bool doIt, QUndoCommand *parent) :
         QUndoCommand(parent),
         m_view(view),
         m_track(track),
index ee2c7d0bfcc14c3ebcdeb5cbc14a23db24215ae2..f92517be4cca5ae02f18df02cc01eb2a967e053b 100644 (file)
@@ -31,7 +31,7 @@ class CustomTrackView;
 class ChangeEffectStateCommand : public QUndoCommand
 {
 public:
-    ChangeEffectStateCommand(CustomTrackView *view, const int track, GenTime pos, const QList <int>& effectIndexes, bool disable, bool refreshEffectStack, bool doIt, QUndoCommand *parent = 0);
+    ChangeEffectStateCommand(CustomTrackView *view, const int track, const GenTime &pos, const QList <int>& effectIndexes, bool disable, bool refreshEffectStack, bool doIt, QUndoCommand *parent = 0);
 
     virtual void undo();
     virtual void redo();
index 841e129fc11e67c9352fa016478ee20e32172392..dd9c00d31aa8b09eb2a245a84857ea85d4478db4 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <KLocale>
 
-EditEffectCommand::EditEffectCommand(CustomTrackView *view, const int track, GenTime pos, const QDomElement &oldeffect, const QDomElement &effect, int stackPos, bool refreshEffectStack, bool doIt, QUndoCommand *parent) :
+EditEffectCommand::EditEffectCommand(CustomTrackView *view, const int track, const GenTime &pos, const QDomElement &oldeffect, const QDomElement &effect, int stackPos, bool refreshEffectStack, bool doIt, QUndoCommand *parent) :
         QUndoCommand(parent),
         m_view(view),
         m_track(track),
index 2c7719ea380f4b4ca3d6cb99243b7955b94e6eb5..8d63c86f5c2981d396c46209410d52b9ab099db8 100644 (file)
@@ -31,7 +31,7 @@ class CustomTrackView;
 class EditEffectCommand : public QUndoCommand
 {
 public:
-    EditEffectCommand(CustomTrackView *view, const int track, GenTime pos, const QDomElement &oldeffect, const QDomElement &effect, int stackPos, bool refreshEffectStack, bool doIt, QUndoCommand *parent = 0);
+    EditEffectCommand(CustomTrackView *view, const int track, const GenTime &pos, const QDomElement &oldeffect, const QDomElement &effect, int stackPos, bool refreshEffectStack, bool doIt, QUndoCommand *parent = 0);
 
     virtual int id() const;
     virtual bool mergeWith(const QUndoCommand * command);
index 56ca9aecf2bd6864052fde9766be1dbd5fa0ea6b..8ec2a87cc40204bc75e5bee8e36e536133eb221f 100644 (file)
@@ -20,7 +20,7 @@
 
 #include <KLocale>
 
-EditTransitionCommand::EditTransitionCommand(CustomTrackView *view, const int track, GenTime pos, const QDomElement &oldeffect, const QDomElement &effect, bool doIt, QUndoCommand * parent) :
+EditTransitionCommand::EditTransitionCommand(CustomTrackView *view, const int track, const GenTime &pos, const QDomElement &oldeffect, const QDomElement &effect, bool doIt, QUndoCommand * parent) :
         QUndoCommand(parent),
         m_view(view),
         m_track(track),
index e331cd96057301a26e72530efd1e8f5f264b1ae1..7836b358f5fb850eaca5d40fb5232ae52d6d2404 100644 (file)
@@ -28,7 +28,7 @@ class CustomTrackView;
 class EditTransitionCommand : public QUndoCommand
 {
 public:
-    EditTransitionCommand(CustomTrackView *view, const int track, GenTime pos, const QDomElement &oldeffect, const QDomElement &effect, bool doIt, QUndoCommand * parent = NULL);
+    EditTransitionCommand(CustomTrackView *view, const int track, const GenTime &pos, const QDomElement &oldeffect, const QDomElement &effect, bool doIt, QUndoCommand * parent = NULL);
 
     virtual int id() const;
     virtual bool mergeWith(const QUndoCommand * command);
index 5fba133a05c37714a9cc095dc556259bc22b6b01..1ab923129fb2696f8a13120afe6b2df431f24126 100644 (file)
@@ -24,7 +24,7 @@
 
 #include <KLocale>
 
-MoveClipCommand::MoveClipCommand(CustomTrackView *view, const ItemInfo start, const ItemInfo end, bool doIt, QUndoCommand * parent) :
+MoveClipCommand::MoveClipCommand(CustomTrackView *view, const ItemInfo &start, const ItemInfo &end, bool doIt, QUndoCommand * parent) :
     QUndoCommand(parent),
     m_view(view),
     m_startPos(start),
index 3ab20cb22dd3e5b6f33f014580e234abbac23a33..0159ad4269c852615c26238d6adbbf9341e46d1f 100644 (file)
@@ -31,7 +31,7 @@ class CustomTrackView;
 class MoveClipCommand : public QUndoCommand
 {
 public:
-    MoveClipCommand(CustomTrackView *view, const ItemInfo start, const ItemInfo end, bool doIt, QUndoCommand * parent = 0);
+    MoveClipCommand(CustomTrackView *view, const ItemInfo &start, const ItemInfo &end, bool doIt, QUndoCommand * parent = 0);
     virtual void undo();
     virtual void redo();
 
index c077128803d5e048199b9069d956e23eca13dc19..ba394793b0ac2aefb9d047240fc0758d3fb6dcd8 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <KLocale>
 
-MoveEffectCommand::MoveEffectCommand(CustomTrackView *view, const int track, GenTime pos, const QList<int> &oldPos, int newPos, QUndoCommand * parent) :
+MoveEffectCommand::MoveEffectCommand(CustomTrackView *view, const int track, const GenTime &pos, const QList<int> &oldPos, int newPos, QUndoCommand * parent) :
         QUndoCommand(parent),
         m_view(view),
         m_track(track),
index e4aa6d707532b81bbec1cc15a5779fbe7a642b73..ee86ffb274657f73b770b7baecbbf52958f212cc 100644 (file)
@@ -31,7 +31,7 @@ class CustomTrackView;
 class MoveEffectCommand : public QUndoCommand
 {
 public:
-    MoveEffectCommand(CustomTrackView *view, const int track, GenTime pos, const QList <int> &oldPos, int newPos, QUndoCommand * parent = 0);
+    MoveEffectCommand(CustomTrackView *view, const int track, const GenTime &pos, const QList <int> &oldPos, int newPos, QUndoCommand * parent = 0);
 
     virtual int id() const;
     virtual bool mergeWith(const QUndoCommand * command);
index f825ed77c8b7cd987a52483b42402943baf2090a..629110f6efc5a36bcb522ae65c1f8ad2d441033a 100644 (file)
@@ -20,7 +20,7 @@
 
 #include <KLocale>
 
-MoveTransitionCommand::MoveTransitionCommand(CustomTrackView *view, const ItemInfo start, const ItemInfo end, bool doIt, QUndoCommand * parent) :
+MoveTransitionCommand::MoveTransitionCommand(CustomTrackView *view, const ItemInfo &start, const ItemInfo &end, bool doIt, QUndoCommand * parent) :
         QUndoCommand(parent),
         m_view(view),
         m_startPos(start),
index 6c9dd00c1097ad864b7624d09936b1aa7939c1cb..42f1967fefbed88e638611b727f52cc31bc4d5e1 100644 (file)
@@ -27,7 +27,7 @@ class CustomTrackView;
 class MoveTransitionCommand : public QUndoCommand
 {
 public:
-    MoveTransitionCommand(CustomTrackView *view, const ItemInfo start, const ItemInfo end, bool doIt, QUndoCommand * parent = 0);
+    MoveTransitionCommand(CustomTrackView *view, const ItemInfo &start, const ItemInfo &end, bool doIt, QUndoCommand * parent = 0);
     virtual void undo();
     virtual void redo();
 
index 69a276cb7c6eda779cdfcf1ab0b44a34205eed34..a80b2f4e3efc3463630891a3287d0285b7894e66 100644 (file)
@@ -21,7 +21,7 @@
 #include "rebuildgroupcommand.h"
 #include "customtrackview.h"
 
-RebuildGroupCommand::RebuildGroupCommand(CustomTrackView* view, int childTrack, GenTime childPos, QUndoCommand* parent) :
+RebuildGroupCommand::RebuildGroupCommand(CustomTrackView* view, int childTrack, const GenTime &childPos, QUndoCommand* parent) :
         QUndoCommand(parent),
         m_view(view),
         m_childTrack(childTrack),
index bc3354fc059a7bc436f112e5edfe17ed08df5c65..dbc80ef85295148b9c0f18e792fb4b506c26fde5 100644 (file)
@@ -29,7 +29,7 @@ class CustomTrackView;
 class RebuildGroupCommand : public QUndoCommand
 {
 public:
-    RebuildGroupCommand(CustomTrackView *view, int childTrack, GenTime childPos, QUndoCommand* parent = 0);
+    RebuildGroupCommand(CustomTrackView *view, int childTrack, const GenTime &childPos, QUndoCommand* parent = 0);
     virtual void undo();
     virtual void redo();
 
index dba66a9469bc43aa58477174ea4b9c12499b92d7..a0103c06e8d3e042efa46e6ea9edbc0887421080 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <KLocale>
 
-ResizeClipCommand::ResizeClipCommand(CustomTrackView *view, const ItemInfo start, const ItemInfo end, bool doIt, bool dontWorry, QUndoCommand * parent) :
+ResizeClipCommand::ResizeClipCommand(CustomTrackView *view, const ItemInfo &start, const ItemInfo &end, bool doIt, bool dontWorry, QUndoCommand * parent) :
         QUndoCommand(parent),
         m_view(view),
         m_startPos(start),
index 9b5a4ae6bbc164ae54a1eb59c5242419e1d5db23..9e326e0f8658ff209b21974be5a308d8b0116c88 100644 (file)
@@ -34,7 +34,7 @@ class CustomTrackView;
 class ResizeClipCommand : public QUndoCommand
 {
 public:
-    ResizeClipCommand(CustomTrackView *view, const ItemInfo start, const ItemInfo end, bool doIt, bool dontWorry, QUndoCommand * parent = 0);
+    ResizeClipCommand(CustomTrackView *view, const ItemInfo &start, const ItemInfo &end, bool doIt, bool dontWorry, QUndoCommand * parent = 0);
     virtual void undo();
     virtual void redo();
 
index cfe3aef0fc307038e9cd1aae8647adad56e6f7ca..e2507e631398024617f15fe8e9a4af95dd4845e1 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <KLocale>
 
-SplitAudioCommand::SplitAudioCommand(CustomTrackView *view, const int track, const GenTime &pos, EffectsList effects, QUndoCommand * parent) :
+SplitAudioCommand::SplitAudioCommand(CustomTrackView *view, const int track, const GenTime &pos, const EffectsList &effects, QUndoCommand * parent) :
         QUndoCommand(parent),
         m_view(view),
         m_pos(pos),
index 9cba6e910928c69ef5831156068f429d2c27feb5..b0eb0d3865a3a17008a00934d521d4c0a1ce6d86 100644 (file)
@@ -34,7 +34,7 @@ class CustomTrackView;
 class SplitAudioCommand : public QUndoCommand
 {
 public:
-    SplitAudioCommand(CustomTrackView *view, const int track, const GenTime &pos, EffectsList effects, QUndoCommand * parent = 0);
+    SplitAudioCommand(CustomTrackView *view, const int track, const GenTime &pos, const EffectsList &effects, QUndoCommand * parent = 0);
     virtual void undo();
     virtual void redo();