summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/osx/DragSource.cxx2
-rw-r--r--vcl/osx/salmenu.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/osx/DragSource.cxx b/vcl/osx/DragSource.cxx
index 5cf1602b6bfe..7adeff85c490 100644
--- a/vcl/osx/DragSource.cxx
+++ b/vcl/osx/DragSource.cxx
@@ -192,7 +192,7 @@ void SAL_CALL DragSource::initialize(const Sequence< Any >& aArguments)
throw Exception("DragSource::initialize: Provided view is not attached to a vcl frame",
static_cast<OWeakObject*>(this));
}
- mpFrame = static_cast<AquaSalFrame*>([pWin performSelector: @selector(getSalFrame)]);
+ mpFrame = reinterpret_cast<AquaSalFrame*>([pWin performSelector: @selector(getSalFrame)]);
mDragSourceHelper = [[DragSourceHelper alloc] initWithDragSource: this];
diff --git a/vcl/osx/salmenu.cxx b/vcl/osx/salmenu.cxx
index a69d8847f0d5..b1e652e344b9 100644
--- a/vcl/osx/salmenu.cxx
+++ b/vcl/osx/salmenu.cxx
@@ -246,7 +246,7 @@ AquaSalMenu::AquaSalMenu( bool bMenuBar ) :
if( ! mbMenuBar )
{
mpMenu = [[SalNSMenu alloc] initWithMenu: this];
- [mpMenu setDelegate: static_cast<id<NSMenuDelegate>>(mpMenu)];
+ [mpMenu setDelegate: reinterpret_cast< id<NSMenuDelegate> >(mpMenu)];
}
else
{