diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-06-12 13:33:37 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-06-12 13:35:49 +0100 |
commit | 7d042c50f5b8e1d61f0615ae8aff5714840be01b (patch) | |
tree | 8a6fc73320ce0d3d6aaf71e36afbd3c76f51c4ca /svtools | |
parent | df4c929bc36c168a55c3467c783fd0256b90dc45 (diff) |
use rtl_ustr_getLength instead of a temporary string just to find length
Change-Id: Ibbf777e57af6b98611cb5dce5a31517de80305b7
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/edit/textdoc.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/edit/textdoc.cxx b/svtools/source/edit/textdoc.cxx index 5ca9997c7a7c..a8062ecefbf3 100644 --- a/svtools/source/edit/textdoc.cxx +++ b/svtools/source/edit/textdoc.cxx @@ -553,7 +553,7 @@ sal_uLong TextDoc::GetTextLen( const xub_Unicode* pSep, const TextSelection* pSe } if ( pSep ) - nLen += (nEndNode-nStartNode) * String( pSep ).Len(); + nLen += (nEndNode-nStartNode) * rtl_ustr_getLength(pSep); } return nLen; |