[Libreoffice-commits] core.git: sal/rtl

Tor Lillqvist tml at collabora.com
Mon Oct 3 19:59:02 UTC 2016


 sal/rtl/bootstrap.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit eecb4405daac3267b83d441c2edeb58c186cde3f
Author: Tor Lillqvist <tml at collabora.com>
Date:   Mon Oct 3 22:45:09 2016 +0300

    -Werror,-Wdeprecated-declaration
    
    'stringByAddingPercentEscapesUsingEncoding:' is deprecated: first
    deprecated in iOS 9.0.
    
    Change-Id: I3a95cbd4ff6ff4924bb7fe1a4c1bac4fad405856

diff --git a/sal/rtl/bootstrap.cxx b/sal/rtl/bootstrap.cxx
index e8e4aa0..7977f32 100644
--- a/sal/rtl/bootstrap.cxx
+++ b/sal/rtl/bootstrap.cxx
@@ -470,7 +470,7 @@ bool Bootstrap_Impl::getValue(
 #endif
 #ifdef IOS
     if (key == "APP_DATA_DIR") {
-        const char *app_data_dir = [[[[NSBundle mainBundle] bundlePath] stringByAddingPercentEscapesUsingEncoding: NSUTF8StringEncoding] UTF8String];
+        const char *app_data_dir = [[[[NSBundle mainBundle] bundlePath] stringByAddingPercentEncodingWithAllowedCharacters: [NSCharacterSet URLPathAllowedCharacterSet]] UTF8String];
         rtl_uString_assign(
             value, rtl::OUString(app_data_dir, strlen(app_data_dir), RTL_TEXTENCODING_UTF8).pData);
         return true;


More information about the Libreoffice-commits mailing list