summaryrefslogtreecommitdiff
path: root/vcl/osx/saldata.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-12-04 09:06:39 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-12-04 09:06:55 +0100
commit7dc20c2bd638e9405f761e4b3ada64caa5a51698 (patch)
tree5a5c616d149be191cbb46659dd328fa483bf4934 /vcl/osx/saldata.cxx
parentee633ec61fd56f83dd217ebe66dd9e12ff0089c9 (diff)
Older Mac apparently need a reinterpret_cast here
Change-Id: I7de7fa410d0d88ca786bda481ca06456d84de86d
Diffstat (limited to 'vcl/osx/saldata.cxx')
-rw-r--r--vcl/osx/saldata.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/osx/saldata.cxx b/vcl/osx/saldata.cxx
index a2a8b857a759..762bc67641be 100644
--- a/vcl/osx/saldata.cxx
+++ b/vcl/osx/saldata.cxx
@@ -230,7 +230,7 @@ NSCursor* SalData::getCursor( PointerStyle i_eStyle )
CFURLRef hURL = CFBundleCopyResourceURL( hMain, pCursorName, CFSTR("png"), CFSTR("cursors") );
if( hURL )
{
- pCurs = [[NSCursor alloc] initWithImage: [[NSImage alloc] initWithContentsOfURL: const_cast<NSURL*>(static_cast<NSURL const *>(hURL))] hotSpot: aHotSpot];
+ pCurs = [[NSCursor alloc] initWithImage: [[NSImage alloc] initWithContentsOfURL: const_cast<NSURL*>(reinterpret_cast<NSURL const *>(hURL))] hotSpot: aHotSpot];
CFRelease( hURL );
}
CFRelease( pCursorName );