reduce use of UniString ctor from null-terminated unicodearray

Change-Id: I98361309ada084d8f78517ce88f210d785f59cc0
This commit is contained in:
Caolán McNamara
2012-06-12 13:40:45 +01:00
parent 2e16eaf31c
commit 6191fa0847
39 changed files with 93 additions and 105 deletions

View File

@@ -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

View File

@@ -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;