[Libreoffice-commits] core.git: vcl/quartz

Stephan Bergmann sbergman at redhat.com
Wed Jan 28 05:17:03 PST 2015


 vcl/quartz/ctfonts.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 787efbe6b155d6dde0d38000b108fd210471bb22
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Jan 28 14:16:28 2015 +0100

    loplugin:cstylecast (Mac OS X)
    
    Change-Id: If1fd605c01fa892c7730930606a29a7bed9edb5e

diff --git a/vcl/quartz/ctfonts.cxx b/vcl/quartz/ctfonts.cxx
index 5fb772b..fd42315 100644
--- a/vcl/quartz/ctfonts.cxx
+++ b/vcl/quartz/ctfonts.cxx
@@ -324,7 +324,7 @@ ImplDevFontAttributes DevFontFromCTFontDescriptor( CTFontDescriptorRef pFD, bool
     // TODO: use other traits such as MonoSpace/Condensed/Expanded or Vertical too
     SInt64 nSymbolTrait = 0;
     CFNumberRef pSymbolNum = NULL;
-    if( CFDictionaryGetValueIfPresent( pAttrDict, kCTFontSymbolicTrait, (const void**)&pSymbolNum ) ) {
+    if( CFDictionaryGetValueIfPresent( pAttrDict, kCTFontSymbolicTrait, reinterpret_cast<const void**>(&pSymbolNum) ) ) {
         CFNumberGetValue( pSymbolNum, kCFNumberSInt64Type, &nSymbolTrait );
         rDFA.SetSymbolFlag( ((nSymbolTrait & kCTFontClassMaskTrait) == kCTFontSymbolicClass) );
     }


More information about the Libreoffice-commits mailing list