From: Montel Laurent Date: Mon, 3 Jun 2013 17:52:32 +0000 (+0200) Subject: Const'ref X-Git-Url: https://git.sesse.net/?p=kdenlive;a=commitdiff_plain;h=c3302003093710ee247ad84c0fe2ef3c579d417f Const'ref --- diff --git a/src/profilesdialog.cpp b/src/profilesdialog.cpp index 8fc0b018..1e9c8641 100644 --- a/src/profilesdialog.cpp +++ b/src/profilesdialog.cpp @@ -320,7 +320,7 @@ bool ProfilesDialog::existingProfileDescription(const QString &desc) } // static -QString ProfilesDialog::existingProfile(MltVideoProfile profile) +QString ProfilesDialog::existingProfile(const MltVideoProfile &profile) { // Check if the profile has a matching entry in existing ones QStringList profilesFilter; diff --git a/src/profilesdialog.h b/src/profilesdialog.h index 31bae209..11760eea 100644 --- a/src/profilesdialog.h +++ b/src/profilesdialog.h @@ -41,7 +41,7 @@ public: static MltVideoProfile getVideoProfile(const QString &name); static QMap getProfilesInfo(); static void saveProfile(MltVideoProfile &profile, QString profilePath = QString()); - static QString existingProfile(MltVideoProfile profile); + static QString existingProfile(const MltVideoProfile &profile); static bool existingProfileDescription(const QString &desc); /** @brief Check if a given profile matches passed properties: