]> git.sesse.net Git - kdenlive/commitdiff
const'ref
authorMontel Laurent <montel@kde.org>
Sat, 25 May 2013 09:06:18 +0000 (11:06 +0200)
committerMontel Laurent <montel@kde.org>
Sat, 25 May 2013 09:06:18 +0000 (11:06 +0200)
src/effectstack/parametercontainer.cpp
src/effectstack/parametercontainer.h

index 513fb66f4a13e64ffc70cadb8ff964b310b8c85b..6bc33844ae54d962795a7b2c964c197fd48f4d76 100644 (file)
@@ -497,12 +497,12 @@ ParameterContainer::~ParameterContainer()
     delete m_vbox;
 }
 
-void ParameterContainer::meetDependency(const QString& name, QString type, QString value)
+void ParameterContainer::meetDependency(const QString& name, const QString &type, const QString &value)
 {
     if (type == "curve") {
         KisCurveWidget *curve = (KisCurveWidget*)m_valueItems[name];
         if (curve) {
-            int color = value.toInt();
+            const int color = value.toInt();
             curve->setPixmap(QPixmap::fromImage(ColorTools::rgbCurvePlane(curve->size(), (ColorTools::ColorsRGB)(color == 3 ? 4 : color), 0.8)));
         }
     } else if (type == "bezier_spline") {
index 17996dff2b16369c860d68fa57f316cd778b5f6e..8cc5951d1cb18d57142455e1f2009d1a2c760cf6 100644 (file)
@@ -79,7 +79,7 @@ private:
     * @param name Name of the parameter which will be updated
     * @param type Type of the parameter which will be updated
     * @param value Value of the dependency parameter */
-    void meetDependency(const QString& name, QString type, QString value);
+    void meetDependency(const QString& name, const QString &type, const QString &value);
     wipeInfo getWipeInfo(QString value);
     QString getWipeString(wipeInfo info);
     /** @brief Delete all child widgets */
@@ -98,7 +98,7 @@ private:
     bool m_needsMonitorEffectScene;
 
 signals:
-    void parameterChanged(const QDomElement, const QDomElement, int);
+    void parameterChanged(const QDomElement &, const QDomElement&, int);
     void syncEffectsPos(int);
     void displayMessage(const QString&, int);
     void disableCurrentFilter(bool);