[Libreoffice-commits] core.git: vcl/osx

Stephan Bergmann sbergman at redhat.com
Thu Apr 6 20:48:58 UTC 2017


 vcl/osx/salnsmenu.mm |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 4c62515d5b6ec5876cafb1165cd9501502fa4c87
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Apr 6 22:48:24 2017 +0200

    loplugin:redundantcast
    
    Change-Id: I925879cf8df630e4e20773c363b9a27a572f3093

diff --git a/vcl/osx/salnsmenu.mm b/vcl/osx/salnsmenu.mm
index f777a44dba15..fb1f7fb5d4d3 100644
--- a/vcl/osx/salnsmenu.mm
+++ b/vcl/osx/salnsmenu.mm
@@ -234,7 +234,7 @@ SAL_WNODEPRECATED_DECLARATIONS_POP
             aSize.width = 2;
             for( size_t i = 0; i < rButtons.size(); ++i )
             {
-                NSRect aImgRect = { { static_cast<CGFloat>(aSize.width),
+                NSRect aImgRect = { { aSize.width,
                                       static_cast<CGFloat>(floor((aSize.height-rButtons[i].maButton.maImage.GetSizePixel().Height())/2)) },
                                     { static_cast<CGFloat>(rButtons[i].maButton.maImage.GetSizePixel().Width()),
                                       static_cast<CGFloat>(rButtons[i].maButton.maImage.GetSizePixel().Height()) } };


More information about the Libreoffice-commits mailing list