summaryrefslogtreecommitdiff
path: root/formula
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-06-12 13:40:45 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-06-13 11:20:23 +0100
commit6191fa0847ac5b27083efe1a8c6cd84d080a638c (patch)
treeb107ce00125d0d204e5c32f6c472e70c73182bb2 /formula
parent2e16eaf31c7a4849110020aebd5fbc97a1ab3e99 (diff)
reduce use of UniString ctor from null-terminated unicodearray
Change-Id: I98361309ada084d8f78517ce88f210d785f59cc0
Diffstat (limited to 'formula')
-rw-r--r--formula/source/core/api/token.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/formula/source/core/api/token.cxx b/formula/source/core/api/token.cxx
index f426a31a833e..dfc31075d270 100644
--- a/formula/source/core/api/token.cxx
+++ b/formula/source/core/api/token.cxx
@@ -746,7 +746,7 @@ FormulaToken* FormulaTokenArray::Add( FormulaToken* t )
FormulaToken* FormulaTokenArray::AddString( const sal_Unicode* pStr )
{
- return AddString( String( pStr ) );
+ return AddString( rtl::OUString( pStr ) );
}
FormulaToken* FormulaTokenArray::AddString( const String& rStr )
@@ -761,7 +761,7 @@ FormulaToken* FormulaTokenArray::AddDouble( double fVal )
FormulaToken* FormulaTokenArray::AddExternal( const sal_Unicode* pStr )
{
- return AddExternal( String( pStr ) );
+ return AddExternal( rtl::OUString( pStr ) );
}
FormulaToken* FormulaTokenArray::AddExternal( const String& rStr,