From d5c5800bffe97911497a0603567417dea15f295f Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Tue, 3 Apr 2012 07:38:00 +0200 Subject: I'm dumb, fromAscii() stops at \0. --- sal/inc/rtl/string.hxx | 3 +-- sal/inc/rtl/ustring.hxx | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'sal/inc/rtl') diff --git a/sal/inc/rtl/string.hxx b/sal/inc/rtl/string.hxx index a00e1861aa8c..0f6246b65d72 100644 --- a/sal/inc/rtl/string.hxx +++ b/sal/inc/rtl/string.hxx @@ -196,8 +196,7 @@ public: New string from a string literal. If there are any embedded \0's in the string literal, the result is undefined. - Use the overload that explicitly accepts length or cast the literal - explicitly to const char*. + Use the overload that explicitly accepts length. @since LibreOffice 3.6 diff --git a/sal/inc/rtl/ustring.hxx b/sal/inc/rtl/ustring.hxx index 518ef3d96625..ee1ba7f7eed5 100644 --- a/sal/inc/rtl/ustring.hxx +++ b/sal/inc/rtl/ustring.hxx @@ -191,7 +191,7 @@ public: providing the encoding to use for the conversion. If there are any embedded \0's in the string literal, the result is undefined. - Use the overload that explicitly accepts length or fromAscii(). + Use the overload that explicitly accepts length. @param literal the 8-bit ASCII string literal -- cgit