summaryrefslogtreecommitdiff
path: root/include/tools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-13 12:23:26 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-13 13:54:50 +0000
commite13b06b129bb8b7860f7f5b2870d337e90512c12 (patch)
tree59beb327eea7fa0d4d00cd707d65e278aa28ea7f /include/tools
parent8e634d0d557bcad6bf56adb30d202e88675f17d1 (diff)
ReadUniStringLine never called without explicit length
Change-Id: I1811cf798a9e4b9d2704cccb59213034d2dc2626
Diffstat (limited to 'include/tools')
-rw-r--r--include/tools/stream.hxx10
1 files changed, 1 insertions, 9 deletions
diff --git a/include/tools/stream.hxx b/include/tools/stream.hxx
index 1316bc128994..320e10b03635 100644
--- a/include/tools/stream.hxx
+++ b/include/tools/stream.hxx
@@ -436,16 +436,8 @@ public:
@param nMaxCodepointsToRead
Maximum of codepoints (UCS-2 or UTF-16 pairs, not bytes) to
read, if line is longer it will be truncated.
-
- @note NOTE that the default is one character less than STRING_MAXLEN to
- prevent problems after conversion to String that may be lurking in
- various places doing something like
- @code
- for (sal_uInt16 i=0; i < aString.Len(); ++i)
- @endcode
- causing endless loops ...
*/
- bool ReadUniStringLine( OUString& rStr, sal_Int32 nMaxCodepointsToRead = 0xFFFE );
+ bool ReadUniStringLine(OUString& rStr, sal_Int32 nMaxCodepointsToRead);
/** Read a 32bit length prefixed sequence of utf-16 if
eSrcCharSet==RTL_TEXTENCODING_UNICODE, otherwise read a 16bit length
prefixed sequence of bytes and convert from eSrcCharSet */