From 0c14e62650138ae65fc1ccf1c640d7797a030f5c Mon Sep 17 00:00:00 2001 From: Montel Laurent Date: Mon, 27 May 2013 22:33:43 +0200 Subject: [PATCH] const'ref --- src/docclipbase.cpp | 6 +++--- src/docclipbase.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/docclipbase.cpp b/src/docclipbase.cpp index d8f917e8..f4a505c0 100644 --- a/src/docclipbase.cpp +++ b/src/docclipbase.cpp @@ -478,7 +478,7 @@ QString DocClipBase::markerComment(const GenTime &t) const return QString(); } -CommentedTime DocClipBase::markerAt(GenTime t) const +CommentedTime DocClipBase::markerAt(const GenTime &t) const { QList < CommentedTime >::ConstIterator itt = m_snapMarkers.begin(); while (itt != m_snapMarkers.end()) { @@ -1048,7 +1048,7 @@ void DocClipBase::setProperties(QMap properties) if (refreshProducer) slotRefreshProducer(); } -void DocClipBase::setMetadata(QMap properties, QString tool) +void DocClipBase::setMetadata(const QMap &properties, const QString &tool) { QMapIterator i(properties); while (i.hasNext()) { @@ -1340,7 +1340,7 @@ bool DocClipBase::hasAudioCodec(const QString &codec) const } -void DocClipBase::slotExtractImage(QList frames) +void DocClipBase::slotExtractImage(const QList &frames) { if (m_thumbProd == NULL) return; m_thumbProd->extractImage(frames); diff --git a/src/docclipbase.h b/src/docclipbase.h index 2c559316..46b5c03f 100644 --- a/src/docclipbase.h +++ b/src/docclipbase.h @@ -275,12 +275,12 @@ public slots: void addSnapMarker(const CommentedTime &marker); QList < GenTime > snapMarkers() const; QString markerComment(const GenTime &t) const; - CommentedTime markerAt(GenTime t) const; + CommentedTime markerAt(const GenTime &t) const; void setClipThumbFrame(const uint &ix); uint getClipThumbFrame() const; void setProperties(QMap properties); - void setMetadata(QMap properties, QString tool = QString()); - void slotExtractImage(QList frames); + void setMetadata(const QMap &properties, const QString &tool = QString()); + void slotExtractImage(const QList &frames); signals: void gotAudioData(); -- 2.39.2