diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-02-17 00:14:26 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-02-18 20:16:06 +0100 |
commit | 8d25fde680beb9dafb7c9c861b5c00d1ae4f4985 (patch) | |
tree | 9770332777df28c8cb6bc12793cf825366adec1e /sw/source/core/inc/scriptinfo.hxx | |
parent | 08dc5de900b2e5cca9d9443fc5d4ea7756842af9 (diff) |
sw; convert SwTxtNode::m_Text to OUString
Do not convert any of the 16bit index variables at this time: the
enforced limit of TXTNODE_MAX should ensure that they are sufficient,
and there are thousands of these variables all around sw.
(also, STRING_LEN/STRING_NOTFOUND is used as a "not found" value all
over the place)
Change-Id: Id26a145701de731470b0bcb95359ed62d4d6d579
Diffstat (limited to 'sw/source/core/inc/scriptinfo.hxx')
-rw-r--r-- | sw/source/core/inc/scriptinfo.hxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sw/source/core/inc/scriptinfo.hxx b/sw/source/core/inc/scriptinfo.hxx index 82de2ea8b47e..bb05d1dae161 100644 --- a/sw/source/core/inc/scriptinfo.hxx +++ b/sw/source/core/inc/scriptinfo.hxx @@ -24,6 +24,8 @@ #include <deque> #include "swscanner.hxx" +namespace rtl { class OUStringBuffer; } + class SwTxtNode; class Point; class MultiSelection; @@ -184,14 +186,15 @@ public: @param rNode The text node. - @param nPos + @param rText The string to modify. @param cChar The character that should replace the hidden characters. @param bDel If set, the hidden ranges will be deleted from the text node. */ - static sal_uInt16 MaskHiddenRanges( const SwTxtNode& rNode, XubString& rText, + static sal_uInt16 MaskHiddenRanges( + const SwTxtNode& rNode, ::rtl::OUStringBuffer& rText, const xub_StrLen nStt, const xub_StrLen nEnd, const sal_Unicode cChar ); |