summaryrefslogtreecommitdiff
path: root/include/unotools/weakref.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-11-04 10:51:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-11-04 13:15:02 +0100
commit5fdf20eac1e071e68d4eea7d9f15bd8b3e7046d1 (patch)
tree3e889035f90f4c8af41da4e32abd5fc351dc67ad /include/unotools/weakref.hxx
parent493c88ab4e597c55e920dbec2262058ecc6b6922 (diff)
address review comments in unotools::WeakReference
from commit 4e0856fa11674e386c9b84dd40a702c83450166f Change-Id: I0dbd6a115b36be8030120a8006959e611f637f07 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142266 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/unotools/weakref.hxx')
-rw-r--r--include/unotools/weakref.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/unotools/weakref.hxx b/include/unotools/weakref.hxx
index 9cf326d99625..554bd433b687 100644
--- a/include/unotools/weakref.hxx
+++ b/include/unotools/weakref.hxx
@@ -117,7 +117,7 @@ public:
css::uno::Reference<css::uno::XInterface> xInterface = WeakReferenceHelper::get();
// If XInterface is an ambiguous base of interface_type, we have to use dynamic_cast,
// otherwise we can use the faster static_cast.
- if constexpr (std::is_convertible_v<css::uno::XInterface, interface_type>)
+ if constexpr (std::is_convertible_v<interface_type*, css::uno::XInterface*>)
return static_cast<interface_type*>(xInterface.get());
else
return dynamic_cast<interface_type*>(xInterface.get());