diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-10-21 11:58:39 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-10-21 15:50:35 +0200 |
commit | 767092fe2cab4a8b28426a6b2b1c752277fc7df6 (patch) | |
tree | d243b943d804167f1062efa8cf1a3ef59b1e47ca /reportdesign/source | |
parent | 57a03d7a52680e7177d07efe364785d53bf0a6df (diff) |
loplugin:referencecasting look for a new pattern
Change-Id: Ib7ded8db2c513909159f0876389f63b60082a529
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141618
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'reportdesign/source')
-rw-r--r-- | reportdesign/source/core/sdr/RptModel.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/reportdesign/source/core/sdr/RptModel.cxx b/reportdesign/source/core/sdr/RptModel.cxx index f79c2a214fca..3dc4bb216b57 100644 --- a/reportdesign/source/core/sdr/RptModel.cxx +++ b/reportdesign/source/core/sdr/RptModel.cxx @@ -155,7 +155,7 @@ uno::Reference< uno::XInterface > OReportModel::createShape(const OUString& aSer xRet = xProp; if ( _rShape.is() ) throw uno::Exception("no shape", nullptr); - xProp->setPropertyValue( PROPERTY_FORMATSSUPPLIER, uno::Any(uno::Reference< util::XNumberFormatsSupplier >(*m_pReportDefinition,uno::UNO_QUERY)) ); + xProp->setPropertyValue( PROPERTY_FORMATSSUPPLIER, uno::Any(uno::Reference< util::XNumberFormatsSupplier >(m_pReportDefinition)) ); } else if ( aServiceSpecifier == SERVICE_FIXEDTEXT) { |