Commit 254095f4 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

const'ify

parent 6955cc18
...@@ -123,7 +123,7 @@ void ClipManager::clearCache() ...@@ -123,7 +123,7 @@ void ClipManager::clearCache()
#endif #endif
} }
void ClipManager::slotRequestThumbs(const QString id, QList <int> frames) void ClipManager::slotRequestThumbs(const QString &id, const QList <int>& frames)
{ {
m_thumbsMutex.lock(); m_thumbsMutex.lock();
foreach (int frame, frames) { foreach (int frame, frames) {
...@@ -527,7 +527,7 @@ void ClipManager::slotAddClip(KIO::Job *job, const KUrl &, const KUrl &dst) ...@@ -527,7 +527,7 @@ void ClipManager::slotAddClip(KIO::Job *job, const KUrl &, const KUrl &dst)
slotAddClipList(KUrl::List () << dst, data); slotAddClipList(KUrl::List () << dst, data);
} }
void ClipManager::slotAddClipList(const KUrl::List &urls, QMap <QString, QString> data) void ClipManager::slotAddClipList(const KUrl::List &urls, const QMap <QString, QString> &data)
{ {
QUndoCommand *addClips = new QUndoCommand(); QUndoCommand *addClips = new QUndoCommand();
// Update list of removable volumes // Update list of removable volumes
......
...@@ -95,7 +95,7 @@ Q_OBJECT public: ...@@ -95,7 +95,7 @@ Q_OBJECT public:
* @param group name of the group to insert the files in (can be empty) * @param group name of the group to insert the files in (can be empty)
* @param groupId id of the group (if any) * @param groupId id of the group (if any)
* It checks for duplicated items and asks to the user for instructions. */ * It checks for duplicated items and asks to the user for instructions. */
void slotAddClipList(const KUrl::List &urls, QMap <QString, QString> data); void slotAddClipList(const KUrl::List &urls, const QMap<QString, QString> &data);
void slotAddTextClipFile(const QString &titleName, int out, const QString &xml, const QString &group, const QString &groupId); void slotAddTextClipFile(const QString &titleName, int out, const QString &xml, const QString &group, const QString &groupId);
void slotAddTextTemplateClip(QString titleName, const KUrl &path, const QString &group, const QString &groupId); void slotAddTextTemplateClip(QString titleName, const KUrl &path, const QString &group, const QString &groupId);
void slotAddXmlClipFile(const QString &name, const QDomElement &xml, const QString &group, const QString &groupId); void slotAddXmlClipFile(const QString &name, const QDomElement &xml, const QString &group, const QString &groupId);
...@@ -133,7 +133,7 @@ Q_OBJECT public: ...@@ -133,7 +133,7 @@ Q_OBJECT public:
public slots: public slots:
/** @brief Request creation of a clip thumbnail for specified frames. */ /** @brief Request creation of a clip thumbnail for specified frames. */
void slotRequestThumbs(const QString id, QList <int> frames); void slotRequestThumbs(const QString &id, const QList<int> &frames);
private slots: private slots:
/** A clip was externally modified, monitor for more changes and prepare for reload */ /** A clip was externally modified, monitor for more changes and prepare for reload */
......
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