]> git.sesse.net Git - kdenlive/blobdiff - src/dvdwizardvob.cpp
cppcheck fixes, patch by Mikko Rapeli [11/27]
[kdenlive] / src / dvdwizardvob.cpp
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);