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:
Noel Grandin
2024-09-20 14:27:43 +02:00
parent 3de3f660af
commit f65b204942

View File

@@ -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();
}