summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-08-26 21:24:07 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-08-26 21:24:29 +0200
commit43c00bc48978a2c148d6f0622f40d3b40a93eb6c (patch)
treed0b308203578d3b99cd31aa9136978e50edb14b1 /basic
parenta7e273755095e4b97c05a63ab39aa09f8aa755a4 (diff)
Clean up aEmptyStr
Change-Id: I5befe9deac917a28e80ed193b67ff29b5ba35149
Diffstat (limited to 'basic')
-rw-r--r--basic/source/runtime/methods.cxx3
-rw-r--r--basic/source/sbx/sbxbase.cxx11
2 files changed, 6 insertions, 8 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index b7dcc98ef56c..09dddbb0f928 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -2869,8 +2869,7 @@ RTLFUNC(Dir)
}
else
{
- OUString aEmptyStr;
- rPar.Get(0)->PutString( aEmptyStr );
+ rPar.Get(0)->PutString( "" );
}
sal_uInt16 nFlags = 0;
diff --git a/basic/source/sbx/sbxbase.cxx b/basic/source/sbx/sbxbase.cxx
index 8924c3fb57cf..086d399c8f6d 100644
--- a/basic/source/sbx/sbxbase.cxx
+++ b/basic/source/sbx/sbxbase.cxx
@@ -156,7 +156,6 @@ SbxBase* SbxBase::Create( sal_uInt16 nSbxId, sal_uInt32 nCreator )
if( nSbxId == 0x65 ) // Dialog Id
return new SbxVariable;
- OUString aEmptyStr;
if( nCreator == SBXCR_SBX )
switch( nSbxId )
{
@@ -164,12 +163,12 @@ SbxBase* SbxBase::Create( sal_uInt16 nSbxId, sal_uInt32 nCreator )
case SBXID_VARIABLE: return new SbxVariable;
case SBXID_ARRAY: return new SbxArray;
case SBXID_DIMARRAY: return new SbxDimArray;
- case SBXID_OBJECT: return new SbxObject( aEmptyStr );
- case SBXID_COLLECTION: return new SbxCollection( aEmptyStr );
+ case SBXID_OBJECT: return new SbxObject( "" );
+ case SBXID_COLLECTION: return new SbxCollection( "" );
case SBXID_FIXCOLLECTION:
- return new SbxStdCollection( aEmptyStr, aEmptyStr );
- case SBXID_METHOD: return new SbxMethod( aEmptyStr, SbxEMPTY );
- case SBXID_PROPERTY: return new SbxProperty( aEmptyStr, SbxEMPTY );
+ return new SbxStdCollection( "", "" );
+ case SBXID_METHOD: return new SbxMethod( "", SbxEMPTY );
+ case SBXID_PROPERTY: return new SbxProperty( "", SbxEMPTY );
}
// Unknown type: go over the factories!
SbxAppData& r = GetSbxData_Impl();