]> git.sesse.net Git - kdenlive/commitdiff
const'ref
authorMontel Laurent <montel@kde.org>
Mon, 20 May 2013 19:58:47 +0000 (21:58 +0200)
committerMontel Laurent <montel@kde.org>
Mon, 20 May 2013 19:58:47 +0000 (21:58 +0200)
src/scopes/scopemanager.cpp
src/scopes/scopemanager.h
src/stopmotion/stopmotion.cpp
src/stopmotion/stopmotion.h

index 5d51dd6b6b83287d9fcdf470a9a2b879f1d6b0b1..cb76f7ddcb93d1896b5d7d33c7dde13df5fff90f 100644 (file)
@@ -110,7 +110,7 @@ bool ScopeManager::addScope(AbstractGfxScopeWidget *colorScope, QDockWidget *col
 }
 
 
-void ScopeManager::slotDistributeAudio(QVector<int16_t> sampleData, int freq, int num_channels, int num_samples)
+void ScopeManager::slotDistributeAudio(const QVector<int16_t> &sampleData, int freq, int num_channels, int num_samples)
 {
 #ifdef DEBUG_SM
     qDebug() << "ScopeManager: Starting to distribute audio.";
index 8eace43d89d5265f9871a17f8e99eba7d359cbb7..31f7584eb2098b2c518cbf5b98586e83a1c7ceb6 100644 (file)
@@ -116,7 +116,7 @@ private slots:
     
     void slotCheckActiveScopes();
     void slotDistributeFrame(const QImage &image);
-    void slotDistributeAudio(QVector<int16_t> sampleData, int freq, int num_channels, int num_samples);
+    void slotDistributeAudio(const QVector<int16_t> &sampleData, int freq, int num_channels, int num_samples);
     /**
       Allows a scope to explicitly request a new frame, even if the scope's autoRefresh is disabled.
       */
index dd1c0538ad3e199e0824d9d4634eb3a490220a44..36d60147bacf27c0d5e8caebccba8fbf57bd79ad 100644 (file)
@@ -879,7 +879,7 @@ void StopmotionWidget::slotSwitchMirror(bool isOn)
 }
 
 
-const QString StopmotionWidget::createProducer(MltVideoProfile profile, const QString &service, const QString &resource)
+const QString StopmotionWidget::createProducer(const MltVideoProfile &profile, const QString &service, const QString &resource)
 {
     Q_UNUSED(profile)
 
index 4c3489522f08ec0119edc71912a2df82e131cdae..3f2b79e2ee674b344981bbc6e317ea928123647e 100644 (file)
@@ -153,7 +153,7 @@ private:
     StopmotionMonitor *m_monitor;
 
     /** @brief Create the XML playlist. */
-    const QString createProducer(MltVideoProfile profile, const QString &service, const QString &resource);
+    const QString createProducer(const MltVideoProfile &profile, const QString &service, const QString &resource);
 
     /** @brief A new frame arrived, reload overlay. */
     void reloadOverlay();