diff options
author | Tor Lillqvist <tml@collabora.com> | 2016-10-03 22:45:09 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2016-10-03 22:53:12 +0300 |
commit | eecb4405daac3267b83d441c2edeb58c186cde3f (patch) | |
tree | b882bd0616357e382589866cc1813644868acf65 /sal | |
parent | dc9f7bbb8d81c1b8fce42a45f362597bb8ad05dc (diff) |
-Werror,-Wdeprecated-declaration
'stringByAddingPercentEscapesUsingEncoding:' is deprecated: first
deprecated in iOS 9.0.
Change-Id: I3a95cbd4ff6ff4924bb7fe1a4c1bac4fad405856
Diffstat (limited to 'sal')
-rw-r--r-- | sal/rtl/bootstrap.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/rtl/bootstrap.cxx b/sal/rtl/bootstrap.cxx index e8e4aa0e2dc5..7977f32eb4b4 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; |