Commit 6955cc18 authored by Laurent Montel's avatar Laurent Montel 😁

const'ref

parent 817cce99
......@@ -137,7 +137,7 @@ ClipItem::~ClipItem()
delete m_timeLine;
}
ClipItem *ClipItem::clone(ItemInfo info) const
ClipItem *ClipItem::clone(const ItemInfo &info) const
{
ClipItem *duplicate = new ClipItem(m_clip, info, m_fps, m_speed, m_strobe, FRAME_SIZE);
if (m_clipType == IMAGE || m_clipType == TEXT) duplicate->slotSetStartThumb(m_startPix);
......@@ -156,7 +156,7 @@ ClipItem *ClipItem::clone(ItemInfo info) const
return duplicate;
}
void ClipItem::setEffectList(const EffectsList effectList)
void ClipItem::setEffectList(const EffectsList &effectList)
{
m_effectList.clone(effectList);
m_effectNames = m_effectList.effectNames().join(" / ");
......
......@@ -63,7 +63,7 @@ public:
void setClipName(const QString &name);
QDomElement xml() const;
QDomElement itemXml() const;
ClipItem *clone(ItemInfo info) const;
ClipItem *clone(const ItemInfo &info) const;
const EffectsList effectList() const;
void setFadeOut(int pos);
void setFadeIn(int pos);
......@@ -150,7 +150,7 @@ public:
* @param ix Number of the effect
* @param keyframes a list of strings of keyframes (one string per param), which should be used */
void setKeyframes(const int ix, const QStringList &keyframes);
void setEffectList(const EffectsList effectList);
void setEffectList(const EffectsList &effectList);
void setSpeed(const double speed, int strobe);
double speed() const;
int strobe() const;
......
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