summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-04-11 14:37:24 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-04-12 13:06:26 +0200
commitd028c1be17c484fef8617490b46c66100b0e25bc (patch)
tree672ecc470737039f36558166112e3287a08e83bd /basic
parent11e381c527ebd440e4d64d19a5bc27bdc9ea70fc (diff)
loplugin:sequentialassign in accessiblity..canvas
Change-Id: I984717138ac85c1af5fc363fda06f5c2b5497965 Reviewed-on: https://gerrit.libreoffice.org/70641 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
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 ),