Commit c5456098 authored by Laurent Montel's avatar Laurent Montel 😁

const'ref

parent 4b9c0b05
......@@ -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") {
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment