diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-03 15:29:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-04 07:44:26 +0100 |
commit | 23255d395f40f6a20635b6f1c39e9d59a2047586 (patch) | |
tree | 53ee80f4e67518dc7d6a31a38baeb7ae059bc86c /reportdesign | |
parent | 3165f0ff32b002a6efbc61af4f778ba4075b496e (diff) |
elide unnecessary UNO_QUERY_THROW calls
Change-Id: I0d0fc57f352e9717e721416c8941cfcf48af24c7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124650
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'reportdesign')
-rw-r--r-- | reportdesign/source/core/api/ReportDefinition.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/reportdesign/source/core/api/ReportDefinition.cxx b/reportdesign/source/core/api/ReportDefinition.cxx index 36babe9b72a0..7bc13e65ae51 100644 --- a/reportdesign/source/core/api/ReportDefinition.cxx +++ b/reportdesign/source/core/api/ReportDefinition.cxx @@ -2486,9 +2486,8 @@ uno::Reference< frame::XTitle > OReportDefinition::impl_getTitleHelper_throw() if ( ! m_pImpl->m_xTitleHelper.is ()) { uno::Reference< frame::XDesktop2 > xDesktop = frame::Desktop::create(m_aProps->m_xContext); - uno::Reference< frame::XModel > xThis(static_cast< frame::XModel* >(this), uno::UNO_QUERY_THROW); - m_pImpl->m_xTitleHelper = new ::framework::TitleHelper( m_aProps->m_xContext, xThis, + m_pImpl->m_xTitleHelper = new ::framework::TitleHelper( m_aProps->m_xContext, uno::Reference< frame::XModel >(this), uno::Reference<frame::XUntitledNumbers>(xDesktop, uno::UNO_QUERY_THROW) ); } @@ -2504,11 +2503,10 @@ uno::Reference< frame::XUntitledNumbers > OReportDefinition::impl_getUntitledHel if ( ! m_pImpl->m_xNumberedControllers.is ()) { - uno::Reference< frame::XModel > xThis(static_cast< frame::XModel* >(this), uno::UNO_QUERY_THROW); rtl::Reference<::comphelper::NumberedCollection> pHelper = new ::comphelper::NumberedCollection(); m_pImpl->m_xNumberedControllers = pHelper; - pHelper->setOwner (xThis); + pHelper->setOwner (uno::Reference< frame::XModel >(this)); pHelper->setUntitledPrefix (" : "); } |