no need to do UNO_QUERY here
Change-Id: I52d13a7e4806d8fc34c4ff6f4cc5ab1e785a8b76 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173729 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
@@ -4470,7 +4470,7 @@ void disposeComVariablesForBasic( StarBASIC const * pBasic )
|
||||
ComponentRefVector& rv = pItem->m_vComImplementsObjects;
|
||||
for (auto const& elem : rv)
|
||||
{
|
||||
Reference< XComponent > xComponent( elem.get(), UNO_QUERY );
|
||||
Reference< XComponent > xComponent( elem );
|
||||
if (xComponent.is())
|
||||
xComponent->dispose();
|
||||
}
|
||||
|
Reference in New Issue
Block a user