++const ref

parent 5484f1d4
......@@ -643,7 +643,7 @@ QPointF KoShape::absolutePosition(KoFlake::Position anchor) const
return absoluteTransformation(0).map(point);
}
void KoShape::setAbsolutePosition(QPointF newPosition, KoFlake::Position anchor)
void KoShape::setAbsolutePosition(const QPointF &newPosition, KoFlake::Position anchor)
{
Q_D(KoShape);
QPointF currentAbsPosition = absolutePosition(anchor);
......@@ -2296,7 +2296,7 @@ QString KoShape::hyperLink () const
return d->hyperLink;
}
void KoShape::setHyperLink (QString & hyperLink)
void KoShape::setHyperLink(const QString &hyperLink)
{
Q_D(KoShape);
d->hyperLink = hyperLink;
......
......@@ -805,7 +805,7 @@ public:
* @param newPosition the new absolute center of the shape.
* @param anchor The place on the (unaltered) shape that you set the position of.
*/
void setAbsolutePosition(QPointF newPosition, KoFlake::Position anchor = KoFlake::CenteredPosition);
void setAbsolutePosition(const QPointF &newPosition, KoFlake::Position anchor = KoFlake::CenteredPosition);
/**
* Set a data object on the shape to be used by an application.
......@@ -1086,7 +1086,7 @@ public:
* Set hyperlink for this shape.
* @param hyperLink name.
*/
void setHyperLink (QString & hyperLink);
void setHyperLink(const QString &hyperLink);
/**
* \internal
......
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