diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-11-08 14:52:54 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-11-10 09:52:53 +0100 |
commit | b875ceabf0bd5572e15afccc2cbedaa783badca0 (patch) | |
tree | a83ed0fb7a4607fd3038cb5967f45091344113a3 /basic | |
parent | 87be89ac27023f48f68a873b37df31aa0453d6fa (diff) |
loplugin:fieldcast in SbModule
Change-Id: I92084a1cf31832404aca43f0c8e2137a33978976
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159251
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/classes/sbxmod.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/classes/sbxmod.cxx b/basic/source/classes/sbxmod.cxx index 15e4719569ba..59eb93f665c4 100644 --- a/basic/source/classes/sbxmod.cxx +++ b/basic/source/classes/sbxmod.cxx @@ -2161,7 +2161,7 @@ SbObjModule::~SbObjModule() void SbObjModule::SetUnoObject( const uno::Any& aObj ) { - SbUnoObject* pUnoObj = dynamic_cast<SbUnoObject*>( pDocObject.get() ); + SbUnoObject* pUnoObj = pDocObject.get(); if ( pUnoObj && pUnoObj->getUnoAny() == aObj ) // object is equal, nothing to do return; pDocObject = new SbUnoObject( GetName(), aObj ); |