summaryrefslogtreecommitdiff
path: root/basic/source/runtime/runtime.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-06-25 12:38:14 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-06-25 15:03:46 -0400
commite14abb13dc7e314840ea09dd78e96c816aee6456 (patch)
treedc75b810ff5a00ea9b99b1d5f11b13668d1dceed /basic/source/runtime/runtime.cxx
parentff0ecb262181b2969e552037a4a4455deb33f925 (diff)
Use boost::optional to store alias name.
Change-Id: I809b21ea156061a265c0d83d58534df10bc273bc
Diffstat (limited to 'basic/source/runtime/runtime.cxx')
-rw-r--r--basic/source/runtime/runtime.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/basic/source/runtime/runtime.cxx b/basic/source/runtime/runtime.cxx
index 138a796d035b..bfa5bc55a3ed 100644
--- a/basic/source/runtime/runtime.cxx
+++ b/basic/source/runtime/runtime.cxx
@@ -3717,10 +3717,10 @@ void SbiRuntime::SetupArgs( SbxVariable* p, sal_uInt32 nOp1 )
for( i = 1 ; i < nArgCount ; i++ )
{
SbxVariable* pVar = refArgv->Get( i );
- const OUString& rName = refArgv->GetAlias( i );
- if( !rName.isEmpty() )
+ OUString aName = refArgv->GetAlias(i);
+ if (!aName.isEmpty())
{
- pNames[i] = rName;
+ pNames[i] = aName;
}
pArg->Put( pVar, nCurPar++ );
}
@@ -3774,15 +3774,15 @@ void SbiRuntime::SetupArgs( SbxVariable* p, sal_uInt32 nOp1 )
for( i = 1 ; i < nArgCount ; i++ )
{
SbxVariable* pVar = refArgv->Get( i );
- const OUString& rName = refArgv->GetAlias( i );
- if( !rName.isEmpty() )
+ OUString aName = refArgv->GetAlias(i);
+ if (!aName.isEmpty())
{
// nCurPar is set to the found parameter
sal_uInt16 j = 1;
const SbxParamInfo* pParam = pInfo->GetParam( j );
while( pParam )
{
- if( pParam->aName.equalsIgnoreAsciiCase( rName ) )
+ if( pParam->aName.equalsIgnoreAsciiCase( aName ) )
{
nCurPar = j;
break;