diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-01-27 17:15:43 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-01-27 17:15:43 +0100 |
commit | 8c78aa379f520f25aa888269f5080583b12b9e6a (patch) | |
tree | 0cd9ac26cc0108968a39190aad5ef3c3a0944ccf | |
parent | 3616f875b014b7d58f81cd871ff7bbf9fd6c78d5 (diff) |
Just pass in OUString directly
Change-Id: Id9bd288080fdd5ed4dfaee77b697954ad7bc2458
-rw-r--r-- | basic/source/comp/parser.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/basic/source/comp/parser.cxx b/basic/source/comp/parser.cxx index da7048d28af5..f930a6c3dc71 100644 --- a/basic/source/comp/parser.cxx +++ b/basic/source/comp/parser.cxx @@ -835,19 +835,14 @@ void SbiParser::Option() } } -void addStringConst( SbiSymPool& rPool, const char* pSym, const OUString& rStr ) +void addStringConst( SbiSymPool& rPool, const OUString& pSym, const OUString& rStr ) { - SbiConstDef* pConst = new SbiConstDef( OUString::createFromAscii( pSym ) ); + SbiConstDef* pConst = new SbiConstDef( pSym ); pConst->SetType( SbxSTRING ); pConst->Set( rStr ); rPool.Add( pConst ); } -inline void addStringConst( SbiSymPool& rPool, const char* pSym, const char* pStr ) -{ - addStringConst( rPool, pSym, OUString::createFromAscii( pStr ) ); -} - void SbiParser::AddConstants() { // #113063 Create constant RTL symbols |