diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-15 09:40:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-16 07:52:57 +0100 |
commit | be92ed5799e7f8dab0d8d1042135afe38b7f258f (patch) | |
tree | e3c3897bb0b23021e8fb6e22052b38a1d54a659a /include/com | |
parent | 7767ff7b521b7d43a1ea2a4fd19a64bd171da5e0 (diff) |
loplugin:referencecasting in reportdesign
Also, I needed to add
castToXInterface()
to the upcasting Reference::Reference constructor,
to resolve ambiguity in casting to XInterface.
Change-Id: Ica60190bc842444c37de56407b586aa267f08372
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110890
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/com')
-rw-r--r-- | include/com/sun/star/uno/Reference.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/com/sun/star/uno/Reference.hxx b/include/com/sun/star/uno/Reference.hxx index ee0117bda0fb..7632c55045ca 100644 --- a/include/com/sun/star/uno/Reference.hxx +++ b/include/com/sun/star/uno/Reference.hxx @@ -144,7 +144,7 @@ inline Reference< interface_type >::Reference( && !std::is_same_v<interface_type, XInterface>, void *>) { interface_type * p = rRef.get(); - _pInterface = p; + _pInterface = castToXInterface(p); if (_pInterface) _pInterface->acquire(); } |