summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-06-10 15:34:54 +0200
committerStephan Bergmann <sbergman@redhat.com>2021-06-10 16:54:48 +0200
commit72bc2412db4f621d2c08e9b539fc9b9f441065e3 (patch)
treee65bc991906fa93337b023bfee449fa9e73b8660 /fpicker
parente97a9211c08fe28d2b46d0a1371f0b391b5343b2 (diff)
-Werror,-Wunused-but-set-variable (Clang 13 trunk)
...ever since the code block's introduction in 14bc62ad0d9e0179f4178d2913ebba7abf99755e "INTEGRATION: CWS aquafilepicker02_DEV300" Change-Id: Id4cda7ed087b350361b0207034fc31819d65efad Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116992 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/aqua/ControlHelper.mm2
1 files changed, 0 insertions, 2 deletions
diff --git a/fpicker/source/aqua/ControlHelper.mm b/fpicker/source/aqua/ControlHelper.mm
index 100e00dc662a..22b7f37b1a13 100644
--- a/fpicker/source/aqua/ControlHelper.mm
+++ b/fpicker/source/aqua/ControlHelper.mm
@@ -817,7 +817,6 @@ void ControlHelper::layoutControls()
//get the control's bounds
NSRect controlRect = [activeControl frame];
int nControlHeight = controlRect.size.height;
- int nControlWidth = controlRect.size.width;
//subtract the height from the current vertical position, because the control's bounds origin rect will be its lower left hand corner
currenttop -= nControlHeight;
@@ -859,7 +858,6 @@ void ControlHelper::layoutControls()
} else {
currenttop += kAquaSpaceSwitchButtonFrameBoundsDiff;//from top
- nControlWidth = nCheckboxMaxWidth;
int left = (nUsableWidth - nCheckboxMaxWidth) / 2;
controlRect.origin.x = left;
controlRect.origin.y = currenttop;