From: Montel Laurent Date: Mon, 20 May 2013 19:58:47 +0000 (+0200) Subject: const'ref X-Git-Url: https://git.sesse.net/?p=kdenlive;a=commitdiff_plain;h=58c5d98d7ea0cbe8745a52a0d55414cf56938d97 const'ref --- diff --git a/src/scopes/scopemanager.cpp b/src/scopes/scopemanager.cpp index 5d51dd6b..cb76f7dd 100644 --- a/src/scopes/scopemanager.cpp +++ b/src/scopes/scopemanager.cpp @@ -110,7 +110,7 @@ bool ScopeManager::addScope(AbstractGfxScopeWidget *colorScope, QDockWidget *col } -void ScopeManager::slotDistributeAudio(QVector sampleData, int freq, int num_channels, int num_samples) +void ScopeManager::slotDistributeAudio(const QVector &sampleData, int freq, int num_channels, int num_samples) { #ifdef DEBUG_SM qDebug() << "ScopeManager: Starting to distribute audio."; diff --git a/src/scopes/scopemanager.h b/src/scopes/scopemanager.h index 8eace43d..31f7584e 100644 --- a/src/scopes/scopemanager.h +++ b/src/scopes/scopemanager.h @@ -116,7 +116,7 @@ private slots: void slotCheckActiveScopes(); void slotDistributeFrame(const QImage &image); - void slotDistributeAudio(QVector sampleData, int freq, int num_channels, int num_samples); + void slotDistributeAudio(const QVector &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. */ diff --git a/src/stopmotion/stopmotion.cpp b/src/stopmotion/stopmotion.cpp index dd1c0538..36d60147 100644 --- a/src/stopmotion/stopmotion.cpp +++ b/src/stopmotion/stopmotion.cpp @@ -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) diff --git a/src/stopmotion/stopmotion.h b/src/stopmotion/stopmotion.h index 4c348952..3f2b79e2 100644 --- a/src/stopmotion/stopmotion.h +++ b/src/stopmotion/stopmotion.h @@ -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();