summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-03-19 20:31:38 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-03-20 12:57:33 +0000
commitbdfba4dbf666868c6d10b972259884877dd01848 (patch)
tree2860856ab873b182752f2dc60c30d802a9a84aee /starmath
parent260ed4ed0317f4f16a675dde48750bc40923bc96 (diff)
make ResId->OUString the primary route
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/parse.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx
index 9b7c2a5650ab..3b1f2a4f6f85 100644
--- a/starmath/source/parse.cxx
+++ b/starmath/source/parse.cxx
@@ -1914,11 +1914,11 @@ void SmParser::Font()
// gets number used as arguments in Math formulas (e.g. 'size' command)
// Format: no negative numbers, must start with a digit, no exponent notation, ...
-bool lcl_IsNumber(const UniString& rText)
+bool lcl_IsNumber(const rtl::OUString& rText)
{
bool bPoint = false;
- const sal_Unicode* pBuffer = rText.GetBuffer();
- for(xub_StrLen nPos = 0; nPos < rText.Len(); nPos++, pBuffer++)
+ const sal_Unicode* pBuffer = rText.getStr();
+ for(sal_Int32 nPos = 0; nPos < rText.getLength(); nPos++, pBuffer++)
{
const sal_Unicode cChar = *pBuffer;
if(cChar == '.')