summaryrefslogtreecommitdiffstats
path: root/basic
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-27 17:15:43 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-27 17:15:43 +0100
commit8c78aa379f520f25aa888269f5080583b12b9e6a (patch)
tree0cd9ac26cc0108968a39190aad5ef3c3a0944ccf /basic
parentlokdocview: Separate gobject property for turning off comments (diff)
downloadcore-8c78aa379f520f25aa888269f5080583b12b9e6a.tar.gz
core-8c78aa379f520f25aa888269f5080583b12b9e6a.zip
Just pass in OUString directly
Change-Id: Id9bd288080fdd5ed4dfaee77b697954ad7bc2458
Diffstat (limited to 'basic')
-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