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

Stephan Bergmann sbergman at redhat.com
Tue Dec 9 23:00:57 PST 2014


 vcl/osx/salnativewidgets.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 629a705c127661111c54e14035b55850e36c2167
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Dec 10 08:00:26 2014 +0100

    loplugin:cstylecast
    
    Change-Id: I9bfd611ef5451b936f2b7b4dda6dd8ede23832a4

diff --git a/vcl/osx/salnativewidgets.cxx b/vcl/osx/salnativewidgets.cxx
index 6b35c02..cb8175e 100644
--- a/vcl/osx/salnativewidgets.cxx
+++ b/vcl/osx/salnativewidgets.cxx
@@ -550,14 +550,14 @@ bool AquaSalGraphics::drawNativeControl(ControlType nType,
                 CGFloat unifiedHeight = rControlRegion.GetHeight();
                 CGRect drawRect = CGRectMake(rControlRegion.Left(), rControlRegion.Top(), rControlRegion.GetWidth(), rControlRegion.GetHeight());
                 CUIDraw([NSWindow coreUIRenderer], drawRect, mrContext,
-                        (CFDictionaryRef)[NSDictionary dictionaryWithObjectsAndKeys:
+                        reinterpret_cast<CFDictionaryRef>([NSDictionary dictionaryWithObjectsAndKeys:
                         @"kCUIWidgetWindowFrame", @"widget",
                         @"regularwin", @"windowtype",
                         (bDrawActive ? @"normal" : @"inactive"), @"state",
                         [NSNumber numberWithDouble:unifiedHeight], @"kCUIWindowFrameUnifiedTitleBarHeightKey",
                         [NSNumber numberWithBool:NO], @"kCUIWindowFrameDrawTitleSeparatorKey",
                         [NSNumber numberWithBool:YES], @"is.flipped",
-                        nil],
+                        nil]),
                         nil);;
             }
             else


More information about the Libreoffice-commits mailing list