[Libreoffice-commits] core.git: basic/source

Stephan Bergmann sbergman at redhat.com
Fri Jan 27 16:16:30 UTC 2017


 basic/source/comp/parser.cxx |    9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

New commits:
commit 8c78aa379f520f25aa888269f5080583b12b9e6a
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Jan 27 17:15:43 2017 +0100

    Just pass in OUString directly
    
    Change-Id: Id9bd288080fdd5ed4dfaee77b697954ad7bc2458

diff --git a/basic/source/comp/parser.cxx b/basic/source/comp/parser.cxx
index da7048d..f930a6c 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


More information about the Libreoffice-commits mailing list