Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 55234ae8 authored by Laurent Montel's avatar Laurent Montel 😁

Use const'ref here too

parent d6b00054
......@@ -430,7 +430,7 @@ Mlt::Transition *TransitionHandler::getTransition(const QString &name, int b_tra
return 0;
}
Mlt::Transition *TransitionHandler::getTrackTransition(const QStringList names, int b_track, int a_track) const
Mlt::Transition *TransitionHandler::getTrackTransition(const QStringList &names, int b_track, int a_track) const
{
QScopedPointer<Mlt::Service> service(m_tractor->field());
while (service && service->is_valid()) {
......@@ -449,7 +449,7 @@ Mlt::Transition *TransitionHandler::getTrackTransition(const QStringList names,
return 0;
}
void TransitionHandler::duplicateTransitionOnPlaylist(int in, int out, QString tag, QDomElement xml, int a_track, int b_track, Mlt::Field *field)
void TransitionHandler::duplicateTransitionOnPlaylist(int in, int out, const QString &tag, const QDomElement &xml, int a_track, int b_track, Mlt::Field *field)
{
QMap<QString, QString> args = getTransitionParamsFromXml(xml);
Mlt::Transition transition(*m_tractor->profile(), tag.toUtf8().constData());
......
......@@ -48,13 +48,13 @@ public:
void deleteTrackTransitions(int ix);
bool moveTransition(QString type, int startTrack, int newTrack, int newTransitionTrack, GenTime oldIn, GenTime oldOut, GenTime newIn, GenTime newOut);
QList <TransitionInfo> mltInsertTrack(int ix, const QString &name, bool videoTrack);
void duplicateTransitionOnPlaylist(int in, int out, QString tag, QDomElement xml, int a_track, int b_track, Mlt::Field *field);
void duplicateTransitionOnPlaylist(int in, int out, const QString &tag, const QDomElement &xml, int a_track, int b_track, Mlt::Field *field);
/** @brief Get a transition with tag name. */
Mlt::Transition *getTransition(const QString &name, int b_track, int a_track = -1, bool internalTransition = false) const;
/** @brief Enable/disable multitrack split view. */
void enableMultiTrack(bool enable);
/** @brief Returns internal track transition. */
Mlt::Transition *getTrackTransition(const QStringList names, int b_track, int a_track) const;
Mlt::Transition *getTrackTransition(const QStringList &names, int b_track, int a_track) const;
/** @brief Switch track compositing mode. */
void rebuildTransitions(int mode, const QList<int> &videoTracks, int maxTrack);
/** @brief Returns the matching composite transition depending on the current settings. */
......
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