summaryrefslogtreecommitdiffstats
path: root/basic
diff options
context:
space:
mode:
Diffstat (limited to 'basic')
-rw-r--r--basic/source/classes/sbunoobj.cxx6
-rw-r--r--basic/source/uno/namecont.cxx4
2 files changed, 3 insertions, 7 deletions
diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx
index 9d7f8daddae5..3e150ebf0307 100644
--- a/basic/source/classes/sbunoobj.cxx
+++ b/basic/source/classes/sbunoobj.cxx
@@ -3328,8 +3328,7 @@ SbxVariable* SbUnoClass::Find( const OUString& rName, SbxClassType )
{
try
{
- Any aAny;
- aAny = xField->get( aAny );
+ Any aAny = xField->get( aAny );
// Convert to Sbx
pRes = new SbxVariable( SbxVARIANT );
@@ -3788,8 +3787,7 @@ void BasicAllListener_Impl::firing_impl( const AllEventObject& Event, Any* pRet
if( xSbxObj.is() )
{
- OUString aMethodName = aPrefixName;
- aMethodName = aMethodName + Event.MethodName;
+ OUString aMethodName = aPrefixName + Event.MethodName;
SbxVariable * pP = xSbxObj.get();
while( pP->GetParent() )
diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx
index 821bf5d06fbf..192da2b017ab 100644
--- a/basic/source/uno/namecont.cxx
+++ b/basic/source/uno/namecont.cxx
@@ -2967,9 +2967,7 @@ void SfxLibrary::implSetModified( bool _bIsModified )
// Methods XInterface
Any SAL_CALL SfxLibrary::queryInterface( const Type& rType )
{
- Any aRet;
-
- aRet =
+ Any aRet =
::cppu::queryInterface(
rType,
static_cast< XContainer * >( this ),