[Libreoffice-commits] core.git: fpicker/source

Stephan Bergmann sbergman at redhat.com
Thu Dec 4 00:15:06 PST 2014


 fpicker/source/aqua/NSURL_OOoAdditions.mm |    2 +-
 fpicker/source/aqua/SalAquaPicker.mm      |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 8783158817bb0ea4a135c1a581fb39180f84092c
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Dec 4 09:14:27 2014 +0100

    fpicker (Mac): loplugin:cstylecast
    
    Change-Id: I52687481a3d1203e72224c172edefd4a0a280688

diff --git a/fpicker/source/aqua/NSURL_OOoAdditions.mm b/fpicker/source/aqua/NSURL_OOoAdditions.mm
index 858eb27..44a9768 100644
--- a/fpicker/source/aqua/NSURL_OOoAdditions.mm
+++ b/fpicker/source/aqua/NSURL_OOoAdditions.mm
@@ -98,7 +98,7 @@ NSString* resolveAlias( NSString* i_pSystemPath )
             }
             else
             {
-                pResolvedPath = (NSString*)CFURLCopyFileSystemPath( rResolvedUrl, kCFURLPOSIXPathStyle );
+                pResolvedPath = const_cast<NSString*>(static_cast<NSString const *>(CFURLCopyFileSystemPath( rResolvedUrl, kCFURLPOSIXPathStyle )));
                 CFRelease( rResolvedUrl );
             }
         }
diff --git a/fpicker/source/aqua/SalAquaPicker.mm b/fpicker/source/aqua/SalAquaPicker.mm
index 125c34f..6fd4023 100644
--- a/fpicker/source/aqua/SalAquaPicker.mm
+++ b/fpicker/source/aqua/SalAquaPicker.mm
@@ -183,7 +183,7 @@ int SalAquaPicker::run()
             break;
         case NAVIGATIONSERVICES_SAVE:
             [m_pDialog setDirectoryURL:startDirectory];
-            [m_pDialog setNameFieldStringValue:[NSString stringWithOUString:((SalAquaFilePicker*)this)->getSaveFileName()]];
+            [m_pDialog setNameFieldStringValue:[NSString stringWithOUString:static_cast<SalAquaFilePicker*>(this)->getSaveFileName()]];
             retVal = [m_pDialog runModal];
             break;
         // [m_pDialog beginSheetForDirectory:startDirectory file:[m_pDialog saveFilename] modalForWindow:[NSApp keyWindow] modalDelegate:((SalAquaFilePicker*)this)->getDelegate() didEndSelector:@selector(savePanelDidEnd:returnCode:contextInfo:) contextInfo:nil];


More information about the Libreoffice-commits mailing list