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

Stephan Bergmann sbergman at redhat.com
Fri Jan 19 20:17:52 UTC 2018


 vcl/osx/clipboard.cxx        |    2 +-
 vcl/osx/salnativewidgets.cxx |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 78a5ed18dc3368cfa78cfcfb54a08c600b4c0ab5
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Jan 19 13:46:22 2018 +0100

    loplugin:redundantcast (after loplugin:cstylecast, macOS)
    
    Change-Id: I4b40f768ec6b0e42e91d7a6af6d5c23a94ab9e9d
    Reviewed-on: https://gerrit.libreoffice.org/48192
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/vcl/osx/clipboard.cxx b/vcl/osx/clipboard.cxx
index 53326fb6634d..d0c047f54ae8 100644
--- a/vcl/osx/clipboard.cxx
+++ b/vcl/osx/clipboard.cxx
@@ -292,7 +292,7 @@ void AquaClipboard::provideDataForType(NSPasteboard* sender, const NSString* typ
 
         if (dp.get() != nullptr)
         {
-            pBoardData = (NSData*)dp->getSystemData();
+            pBoardData = dp->getSystemData();
             [sender setData: pBoardData forType:const_cast<NSString*>(type)];
         }
     }
diff --git a/vcl/osx/salnativewidgets.cxx b/vcl/osx/salnativewidgets.cxx
index 42add9e30d5a..d311526c0168 100644
--- a/vcl/osx/salnativewidgets.cxx
+++ b/vcl/osx/salnativewidgets.cxx
@@ -921,8 +921,8 @@ bool AquaSalGraphics::drawNativeControl(ControlType nType,
                 ControlState nUpperState = ControlState::ENABLED;//state of the upper button
                 ControlState nLowerState = ControlState::ENABLED;//and of the lower button
                 if(pSpinButtonVal) {//pSpinButtonVal is sometimes null
-                    nUpperState = (ControlState) pSpinButtonVal->mnUpperState;
-                    nLowerState = (ControlState) pSpinButtonVal->mnLowerState;
+                    nUpperState = pSpinButtonVal->mnUpperState;
+                    nLowerState = pSpinButtonVal->mnLowerState;
 
                     HIThemeButtonDrawInfo aSpinInfo;
                     aSpinInfo.kind = kThemeIncDecButton;


More information about the Libreoffice-commits mailing list