]> git.sesse.net Git - kdenlive/commitdiff
cppcheck fixes, patch by Mikko Rapeli [11/27]
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Fri, 9 Sep 2011 23:42:13 +0000 (23:42 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Fri, 9 Sep 2011 23:42:13 +0000 (23:42 +0000)
svn path=/trunk/kdenlive/; revision=5884

src/dvdwizardvob.cpp
src/dvdwizardvob.h

index 39e7d373109d20608f6f3b0a4873f7a360c8573c..8b9b0d6f8a467ada80c4fc6c00e82a40b954a78f 100644 (file)
@@ -276,7 +276,7 @@ QString DvdWizardVob::introMovie() const
     return m_view.intro_vob->url().path();
 }
 
-void DvdWizardVob::setIntroMovie(const QString path)
+void DvdWizardVob::setIntroMovie(const QString& path)
 {
     m_view.intro_vob->setUrl(KUrl(path));
     m_view.use_intro->setChecked(path.isEmpty() == false);
@@ -338,7 +338,7 @@ bool DvdWizardVob::isWide() const
     return (m_view.dvd_profile->currentIndex() == 1 || m_view.dvd_profile->currentIndex() == 3);
 }
 
-void DvdWizardVob::setProfile(const QString profile)
+void DvdWizardVob::setProfile(const QString& profile)
 {
     if (profile == "dv_pal") m_view.dvd_profile->setCurrentIndex(0);
     else if (profile == "dv_pal_wide") m_view.dvd_profile->setCurrentIndex(1);
index 6fd5b7fa31e08efbb146c3db0c00298c86b46f00..58698cf0a2018286a5d4b14ecbe1197eed520c8c 100644 (file)
@@ -49,10 +49,10 @@ public:
     int duration(int ix) const;
     QStringList durations() const;
     QStringList chapters() const;
-    void setProfile(const QString profile);
+    void setProfile(const QString& profile);
     void clear();
     void updateChapters(QMap <QString, QString> chaptersdata);
-    void setIntroMovie(const QString path);
+    void setIntroMovie(const QString& path);
 
 private:
     Ui::DvdWizardVob_UI m_view;