Commit 58c5d98d authored by Laurent Montel's avatar Laurent Montel 😁

const'ref

parent b8f6dc09
......@@ -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.";
......
......@@ -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.
*/
......
......@@ -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)
......
......@@ -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();
......
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