Kaydet (Commit) 6c6c5cd1 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Why is Objective C such an ill-specified mess?

Change-Id: I2a6b4ba10d303a6a4ce5bc4582e68a73c2ae331e
üst ef296e87
......@@ -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];
......
......@@ -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
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment