vcl/osx/a11ywrapper.mm  |    4 ++--
 vcl/osx/salframeview.mm |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 783851f99c25ba53331fafc03523d3537617cd2b
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Tue Jun 20 09:19:47 2023 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Tue Jun 20 10:49:58 2023 +0200

    loplugin:cstylecast
    
    Change-Id: I32e3e9bff261f95010582c6e5e2d22abb725f402
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153311
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/vcl/osx/a11ywrapper.mm b/vcl/osx/a11ywrapper.mm
index 0ca256a7552f..887ea024ca44 100644
--- a/vcl/osx/a11ywrapper.mm
+++ b/vcl/osx/a11ywrapper.mm
@@ -1266,7 +1266,7 @@ static Reference < XAccessibleContext > hitTestRunner ( 
css::awt::Point point,
 {
     NSNumber *pNumber = [ self accessibilityAttributeValue: 
NSAccessibilityOrientationAttribute ];
     if ( pNumber )
-        return (NSAccessibilityOrientation)[ pNumber integerValue ];
+        return NSAccessibilityOrientation([ pNumber integerValue ]);
     else
         return NSAccessibilityOrientationUnknown;
 }
@@ -1555,7 +1555,7 @@ static Reference < XAccessibleContext > hitTestRunner ( 
css::awt::Point point,
             com::sun::star::awt::Point location = 
pAccessibleComponent->getLocationOnScreen();
             com::sun::star::awt::Size size = pAccessibleComponent->getSize();
             NSRect screenRect = sal::aqua::getTotalScreenBounds();
-            NSRect frame = NSMakeRect( (float)location.X, (float)( 
screenRect.size.height - size.Height - location.Y ), (float)size.Width, 
(float)size.Height );
+            NSRect frame = NSMakeRect( float(location.X), float( 
screenRect.size.height - size.Height - location.Y ), float(size.Width), 
float(size.Height) );
             return frame;
         }
     } catch ( DisposedException& ) {
diff --git a/vcl/osx/salframeview.mm b/vcl/osx/salframeview.mm
index 0ccdb048d190..f8608f62c2f7 100644
--- a/vcl/osx/salframeview.mm
+++ b/vcl/osx/salframeview.mm
@@ -2549,7 +2549,7 @@ static NSArray *getMergedAccessibilityChildren(NSArray 
*pDefaultChildren, NSArra
 
     if (pObject && [pObject isKindOfClass:[SalFrameView class]])
     {
-        mpParentView = (SalFrameView *)pObject;
+        mpParentView = static_cast<SalFrameView *>(pObject);
         [mpParentView retain];
     }
 

Reply via email to