summaryrefslogtreecommitdiffstats
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-06-12 13:33:37 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-06-12 13:35:49 +0100
commit7d042c50f5b8e1d61f0615ae8aff5714840be01b (patch)
tree8a6fc73320ce0d3d6aaf71e36afbd3c76f51c4ca /svtools
parentdon't need to realloc string (diff)
downloadcore-7d042c50f5b8e1d61f0615ae8aff5714840be01b.tar.gz
core-7d042c50f5b8e1d61f0615ae8aff5714840be01b.zip
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.cxx2
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;