starmath/source/unomodel.cxx |    3 ---
 1 file changed, 3 deletions(-)

New commits:
commit 993e075c909a609c8a2af80afc1080672d724ac5
Author:     Noel Grandin <[email protected]>
AuthorDate: Mon Oct 17 10:48:27 2022 +0200
Commit:     Noel Grandin <[email protected]>
CommitDate: Mon Oct 17 11:50:36 2022 +0200

    simplify SmModel::queryInterface
    
    these two are redundant, the base class queryInterface already handles
    them
    
    Change-Id: I047b32941c104a03a994e0553d80c4ead2b967df
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141444
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <[email protected]>

diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx
index 42f377f27ce9..3c0d750f5737 100644
--- a/starmath/source/unomodel.cxx
+++ b/starmath/source/unomodel.cxx
@@ -320,9 +320,6 @@ SmModel::~SmModel() noexcept
 uno::Any SAL_CALL SmModel::queryInterface( const uno::Type& rType )
 {
     uno::Any aRet =  ::cppu::queryInterface ( rType,
-                                    // OWeakObject interfaces
-                                    
&dynamic_cast<XInterface&>(static_cast<XUnoTunnel&>(*this)),
-                                    static_cast< XWeak* > ( this ),
                                     // PropertySetHelper interfaces
                                     static_cast< XPropertySet* > ( this ),
                                     static_cast< XMultiPropertySet* > ( this ),

Reply via email to