summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--basic/source/comp/parser.cxx9
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