[Kdenlive-devel] [PATCH kdenlive 09/27] const parameters as reference
Mikko Rapeli
mikko.rapeli at iki.fi
Sun Aug 28 10:24:49 UTC 2011
Found by cppcheck.
---
src/dvdwizardchapters.cpp | 2 +-
src/dvdwizardchapters.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/dvdwizardchapters.cpp b/src/dvdwizardchapters.cpp
index 0804f5c..807e180 100644
--- a/src/dvdwizardchapters.cpp
+++ b/src/dvdwizardchapters.cpp
@@ -134,7 +134,7 @@ void DvdWizardChapters::slotGoToChapter()
if (m_view.chapters_list->currentItem()) m_monitor->setTimePos(m_tc.reformatSeparators(m_view.chapters_list->currentItem()->text() + ":00"));
}
-void DvdWizardChapters::setVobFiles(bool isPal, bool isWide, const QStringList movies, const QStringList durations, const QStringList chapters)
+void DvdWizardChapters::setVobFiles(bool isPal, bool isWide, const QStringList &movies, const QStringList &durations, const QStringList &chapters)
{
m_isPal = isPal;
QString profile;
diff --git a/src/dvdwizardchapters.h b/src/dvdwizardchapters.h
index 620da01..515d942 100644
--- a/src/dvdwizardchapters.h
+++ b/src/dvdwizardchapters.h
@@ -39,7 +39,7 @@ public:
virtual bool isComplete() const;
void changeProfile(bool isPal);
void setPal(bool isPal);
- void setVobFiles(bool isPal, bool isWide, const QStringList movies, const QStringList durations, const QStringList chapters);
+ void setVobFiles(bool isPal, bool isWide, const QStringList &movies, const QStringList &durations, const QStringList &chapters);
QStringList selectedTitles() const;
QStringList selectedTargets() const;
QStringList chapters(int ix) const;
--
1.7.5.4
More information about the Kdenlive
mailing list