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 /forms | |
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 'forms')
-rw-r--r-- | forms/source/component/DatabaseForm.cxx | 2 | ||||
-rw-r--r-- | forms/source/component/FormComponent.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/forms/source/component/DatabaseForm.cxx b/forms/source/component/DatabaseForm.cxx index fff1fdf6b5c8..d4795414a43d 100644 --- a/forms/source/component/DatabaseForm.cxx +++ b/forms/source/component/DatabaseForm.cxx @@ -1328,7 +1328,7 @@ void ODatabaseForm::describeFixedAndAggregateProperties( Reference< XMultiPropertySet > ODatabaseForm::getPropertiesInterface() { - return Reference< XMultiPropertySet >( *this, UNO_QUERY ); + return this; } diff --git a/forms/source/component/FormComponent.cxx b/forms/source/component/FormComponent.cxx index 7b6dd36c5e75..e18ca14628c1 100644 --- a/forms/source/component/FormComponent.cxx +++ b/forms/source/component/FormComponent.cxx @@ -1061,7 +1061,7 @@ void OControlModel::describeFixedAndAggregateProperties( Sequence< Property >& _ Reference< XMultiPropertySet > OControlModel::getPropertiesInterface() { - return Reference< XMultiPropertySet >( *this, UNO_QUERY ); + return this; } Reference< XPropertySetInfo> SAL_CALL OControlModel::getPropertySetInfo() |