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

New commits:
commit 78a5ed18dc3368cfa78cfcfb54a08c600b4c0ab5
Author: Stephan Bergmann <[email protected]>
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 <[email protected]>
    Reviewed-by: Stephan Bergmann <[email protected]>

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;
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to