More const ref parameter passing

parent 91643981
......@@ -466,7 +466,7 @@ void KisCanvas2::resetCanvas(bool useOpenGL)
updateCanvasWidgetImpl();
}
void KisCanvas2::startUpdateInPatches(QRect imageRect)
void KisCanvas2::startUpdateInPatches(const QRect &imageRect)
{
if (m_d->currentCanvasIsOpenGL) {
startUpdateCanvasProjection(imageRect);
......
......@@ -202,7 +202,7 @@ public Q_SLOTS:
* Called whenever the display monitor profile resource changes
*/
void slotSetDisplayProfile(const KoColorProfile *profile);
void startUpdateInPatches(QRect imageRect);
void startUpdateInPatches(const QRect &imageRect);
private Q_SLOTS:
......
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