diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-07-02 16:02:38 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-07-03 21:24:35 +0100 |
commit | bccf34c19ae022b67565e212fa4ec0d5213947de (patch) | |
tree | 73c2d2e29ad8d15999cbfb2ff554efa1e502a35e /basic/source/comp | |
parent | 285289275d1cf1769080a208b55be984cd269e1e (diff) |
ditch String::CreateFromAscii
Change-Id: I2b482bd323ac510629c5ee31868010b7cd6ce691
Diffstat (limited to 'basic/source/comp')
-rw-r--r-- | basic/source/comp/parser.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/basic/source/comp/parser.cxx b/basic/source/comp/parser.cxx index 61a55da33e2b..1af42ef2fadb 100644 --- a/basic/source/comp/parser.cxx +++ b/basic/source/comp/parser.cxx @@ -820,7 +820,7 @@ void SbiParser::Option() void addStringConst( SbiSymPool& rPool, const char* pSym, const String& rStr ) { - SbiConstDef* pConst = new SbiConstDef( String::CreateFromAscii( pSym ) ); + SbiConstDef* pConst = new SbiConstDef( rtl::OUString::createFromAscii( pSym ) ); pConst->SetType( SbxSTRING ); pConst->Set( rStr ); rPool.Add( pConst ); @@ -828,7 +828,7 @@ void addStringConst( SbiSymPool& rPool, const char* pSym, const String& rStr ) inline void addStringConst( SbiSymPool& rPool, const char* pSym, const char* pStr ) { - addStringConst( rPool, pSym, String::CreateFromAscii( pStr ) ); + addStringConst( rPool, pSym, rtl::OUString::createFromAscii( pStr ) ); } void SbiParser::AddConstants( void ) @@ -848,7 +848,7 @@ void SbiParser::AddConstants( void ) addStringConst( aPublics, "vbVerticalTab", "\x0B" ); // Force length 1 and make char 0 afterwards - String aNullCharStr( String::CreateFromAscii( " " ) ); + String aNullCharStr( rtl::OUString(" ") ); aNullCharStr.SetChar( 0, 0 ); addStringConst( aPublics, "vbNullChar", aNullCharStr ); } |