From 254095f40e332af8c58baf10dd946090f7c6fee1 Mon Sep 17 00:00:00 2001 From: Montel Laurent Date: Mon, 20 May 2013 22:10:10 +0200 Subject: [PATCH] const'ify --- src/clipmanager.cpp | 4 ++-- src/clipmanager.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/clipmanager.cpp b/src/clipmanager.cpp index 80396991..643e9816 100644 --- a/src/clipmanager.cpp +++ b/src/clipmanager.cpp @@ -123,7 +123,7 @@ void ClipManager::clearCache() #endif } -void ClipManager::slotRequestThumbs(const QString id, QList frames) +void ClipManager::slotRequestThumbs(const QString &id, const QList & frames) { m_thumbsMutex.lock(); foreach (int frame, frames) { @@ -527,7 +527,7 @@ void ClipManager::slotAddClip(KIO::Job *job, const KUrl &, const KUrl &dst) slotAddClipList(KUrl::List () << dst, data); } -void ClipManager::slotAddClipList(const KUrl::List &urls, QMap data) +void ClipManager::slotAddClipList(const KUrl::List &urls, const QMap &data) { QUndoCommand *addClips = new QUndoCommand(); // Update list of removable volumes diff --git a/src/clipmanager.h b/src/clipmanager.h index b980f11c..d7b82dbf 100644 --- a/src/clipmanager.h +++ b/src/clipmanager.h @@ -95,7 +95,7 @@ Q_OBJECT public: * @param group name of the group to insert the files in (can be empty) * @param groupId id of the group (if any) * It checks for duplicated items and asks to the user for instructions. */ - void slotAddClipList(const KUrl::List &urls, QMap data); + void slotAddClipList(const KUrl::List &urls, const QMap &data); 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 slotAddXmlClipFile(const QString &name, const QDomElement &xml, const QString &group, const QString &groupId); @@ -133,7 +133,7 @@ Q_OBJECT public: public slots: /** @brief Request creation of a clip thumbnail for specified frames. */ - void slotRequestThumbs(const QString id, QList frames); + void slotRequestThumbs(const QString &id, const QList &frames); private slots: /** A clip was externally modified, monitor for more changes and prepare for reload */ -- 2.39.2