summaryrefslogtreecommitdiff
path: root/basic/source/classes
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-08 15:41:15 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-04-11 06:20:10 +0000
commitf3dabe7507b578484805255eae31d8a1358e605c (patch)
tree385c39e2080d74e4e82ad5d363af201c7f11d19a /basic/source/classes
parent234f10eb26b70bb2ab412dd46d2763f3a7f555ff (diff)
make GetGlobalUNOConstant and GetUNOConstant take an OUString
and eliminate converting backwards and forwards between sal_Char*/OString/OUString Change-Id: Iaf52ce93f0e732ab338f75d21b95ab4b020a4d6f Reviewed-on: https://gerrit.libreoffice.org/23919 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'basic/source/classes')
-rw-r--r--basic/source/classes/sb.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/basic/source/classes/sb.cxx b/basic/source/classes/sb.cxx
index 7e4323ae5917..a470547d192a 100644
--- a/basic/source/classes/sb.cxx
+++ b/basic/source/classes/sb.cxx
@@ -1921,11 +1921,10 @@ bool StarBASIC::StoreData( SvStream& r ) const
return true;
}
-bool StarBASIC::GetUNOConstant( const sal_Char* _pAsciiName, css::uno::Any& aOut )
+bool StarBASIC::GetUNOConstant( const OUString& rName, css::uno::Any& aOut )
{
bool bRes = false;
- OUString sVarName( OUString::createFromAscii( _pAsciiName ) );
- SbUnoObject* pGlobs = dynamic_cast<SbUnoObject*>( Find( sVarName, SbxCLASS_DONTCARE ) );
+ SbUnoObject* pGlobs = dynamic_cast<SbUnoObject*>( Find( rName, SbxCLASS_DONTCARE ) );
if ( pGlobs )
{
aOut = pGlobs->getUnoAny();