]> git.sesse.net Git - kdenlive/blobdiff - src/profilesdialog.h
Const'ref
[kdenlive] / src / profilesdialog.h
index c3710205857cd137e6d1a31e7a81f40262cba8b2..11760eeab5e65d367fab218d7752b4d07c5002bc 100644 (file)
@@ -41,7 +41,7 @@ public:
     static MltVideoProfile getVideoProfile(const QString &name);
     static QMap <QString, QString> 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:
@@ -52,7 +52,7 @@ public:
      *  @param isImage If true, compare width with profile's display width ( = dar * height)
      *  @param profile The profile to match
      *  @return true if properties match profile */
-    static bool matchProfile(int width, int height, double fps, double par, bool isImage, MltVideoProfile profile);
+    static bool matchProfile(int width, int height, double fps, double par, bool isImage, const MltVideoProfile &profile);
 
     /** @brief Find profiles that match parameter properties:
      *  @param width The profile frame width