summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-04-03 07:38:00 +0200
committerLuboš Luňák <l.lunak@suse.cz>2012-04-03 07:41:55 +0200
commitd5c5800bffe97911497a0603567417dea15f295f (patch)
tree42c1ada0c8ae54f7d02d55ba6bb6009c3162808c /sal
parent19b7edb9c65793821bee984d2da43fbfbd605e74 (diff)
I'm dumb, fromAscii() stops at \0.
Diffstat (limited to 'sal')
-rw-r--r--sal/inc/rtl/string.hxx3
-rw-r--r--sal/inc/rtl/ustring.hxx2
2 files changed, 2 insertions, 3 deletions
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