diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-06-12 13:40:45 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-06-13 11:20:23 +0100 |
commit | 6191fa0847ac5b27083efe1a8c6cd84d080a638c (patch) | |
tree | b107ce00125d0d204e5c32f6c472e70c73182bb2 /basic | |
parent | 2e16eaf31c7a4849110020aebd5fbc97a1ab3e99 (diff) |
reduce use of UniString ctor from null-terminated unicodearray
Change-Id: I98361309ada084d8f78517ce88f210d785f59cc0
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/classes/image.cxx | 7 | ||||
-rw-r--r-- | basic/source/sbx/sbxexec.cxx | 2 |
2 files changed, 3 insertions, 6 deletions
diff --git a/basic/source/classes/image.cxx b/basic/source/classes/image.cxx index af93adee99af..5aecb53318de 100644 --- a/basic/source/classes/image.cxx +++ b/basic/source/classes/image.cxx @@ -480,12 +480,9 @@ String SbiImage::GetString( short nId ) const } } else - { - String aStr( pStr ); - return aStr; - } + return rtl::OUString(pStr); } - return String(); + return rtl::OUString(); } const SbxObject* SbiImage::FindType (String aTypeName) const diff --git a/basic/source/sbx/sbxexec.cxx b/basic/source/sbx/sbxexec.cxx index 7fe4f6777641..b8912983aaca 100644 --- a/basic/source/sbx/sbxexec.cxx +++ b/basic/source/sbx/sbxexec.cxx @@ -153,7 +153,7 @@ static SbxVariable* Operand { // A number could be scanned in directly! sal_uInt16 nLen; - if( !refVar->Scan( XubString( p ), &nLen ) ) + if( !refVar->Scan( rtl::OUString( p ), &nLen ) ) refVar.Clear(); else p += nLen; |