[Libreoffice-commits] core.git: fpicker/source

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Thu Jun 10 14:55:28 UTC 2021


 fpicker/source/aqua/ControlHelper.mm |    2 --
 1 file changed, 2 deletions(-)

New commits:
commit 72bc2412db4f621d2c08e9b539fc9b9f441065e3
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Jun 10 15:34:54 2021 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Thu Jun 10 16:54:48 2021 +0200

    -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 at redhat.com>

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;


More information about the Libreoffice-commits mailing list