summaryrefslogtreecommitdiff
path: root/cppuhelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-12-02 09:22:32 +0100
committerStephan Bergmann <sbergman@redhat.com>2022-12-02 10:11:38 +0000
commit9c6fa5fc984cbfc1a2aa3ece8411cc61263390e6 (patch)
treed97e008d202fb30ac60dc40ca8d6f82827ff4c21 /cppuhelper
parentcf551bf23d6527419bc09d8719e5ce7d5e45fb3a (diff)
Replace some uses of static_type with UnoType
(which is what that static_type scaffolding calls internally, anyway) Change-Id: Ibd8097de0d6a9cd0040c34e5070dafa8db256b56 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143566 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'cppuhelper')
-rw-r--r--cppuhelper/source/propertysetmixin.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/cppuhelper/source/propertysetmixin.cxx b/cppuhelper/source/propertysetmixin.cxx
index 0d94e7a822a6..50a8be1f8436 100644
--- a/cppuhelper/source/propertysetmixin.cxx
+++ b/cppuhelper/source/propertysetmixin.cxx
@@ -65,6 +65,7 @@
#include <com/sun/star/uno/TypeClass.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/uno/XInterface.hpp>
+#include <cppu/unotype.hxx>
#include <cppuhelper/exc_hlp.hxx>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/propertysetmixin.hxx>
@@ -950,21 +951,21 @@ void PropertySetMixinImpl::dispose() {
css::uno::Any PropertySetMixinImpl::queryInterface(css::uno::Type const & type)
{
if ((m_impl->implements & IMPLEMENTS_PROPERTY_SET) != 0
- && type == css::beans::XPropertySet::static_type())
+ && type == cppu::UnoType<css::beans::XPropertySet>::get())
{
css::uno::Reference< css::uno::XInterface > ifc(
static_cast< css::beans::XPropertySet * >(this));
return css::uno::Any(&ifc, type);
}
if ((m_impl->implements & IMPLEMENTS_FAST_PROPERTY_SET) != 0
- && type == css::beans::XFastPropertySet::static_type())
+ && type == cppu::UnoType<css::beans::XFastPropertySet>::get())
{
css::uno::Reference< css::uno::XInterface > ifc(
static_cast< css::beans::XFastPropertySet * >(this));
return css::uno::Any(&ifc, type);
}
if ((m_impl->implements & IMPLEMENTS_PROPERTY_ACCESS) != 0
- && type == css::beans::XPropertyAccess::static_type())
+ && type == cppu::UnoType<css::beans::XPropertyAccess>::get())
{
css::uno::Reference< css::uno::XInterface > ifc(
static_cast< css::beans::XPropertyAccess * >(this));