[Libreoffice-commits] core.git: vcl/osx
Stephan Bergmann
sbergman at redhat.com
Thu Dec 4 00:07:16 PST 2014
vcl/osx/saldata.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 7dc20c2bd638e9405f761e4b3ada64caa5a51698
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Thu Dec 4 09:06:39 2014 +0100
Older Mac apparently need a reinterpret_cast here
Change-Id: I7de7fa410d0d88ca786bda481ca06456d84de86d
diff --git a/vcl/osx/saldata.cxx b/vcl/osx/saldata.cxx
index a2a8b85..762bc67 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 );
More information about the Libreoffice-commits
mailing list