From 07ded5727331f34ebe3d3467eb7da122fe75b8e1 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 26 Sep 2019 18:13:15 +0300 Subject: [PATCH] [wayland] Add missing const qualifier in resizeWithChecks Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D24330 --- xdgshellclient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xdgshellclient.cpp b/xdgshellclient.cpp index 36e49b4734..d98ed06412 100644 --- a/xdgshellclient.cpp +++ b/xdgshellclient.cpp @@ -1259,7 +1259,7 @@ void XdgShellClient::handleCommitted() void XdgShellClient::resizeWithChecks(int w, int h, ForceGeometry_t force) { - QRect area = workspace()->clientArea(WorkArea, this); + const QRect area = workspace()->clientArea(WorkArea, this); // don't allow growing larger than workarea if (w > area.width()) { w = area.width();