summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2024-12-08 20:41:14 +0500
committerMike Kaganski <mike.kaganski@collabora.com>2024-12-08 19:07:31 +0100
commit2ef6b7f9dbbf826817a14640cb3118c495db5bc4 (patch)
tree989c19807f62c17acf152fd2b1bf748e819a4de9
parentf8aa78379cfbff830b0e8dc6f2b6961dd09fa74b (diff)
Drop some OTypeCollection uses
Change-Id: Ia1467c44998961f5e0820fb4d0621a4189d49d9f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178095 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
-rw-r--r--comphelper/source/property/propertycontainer2.cxx5
-rw-r--r--cppuhelper/source/component.cxx6
2 files changed, 4 insertions, 7 deletions
diff --git a/comphelper/source/property/propertycontainer2.cxx b/comphelper/source/property/propertycontainer2.cxx
index 5a3bfa4be2850..7a57ed57c03bc 100644
--- a/comphelper/source/property/propertycontainer2.cxx
+++ b/comphelper/source/property/propertycontainer2.cxx
@@ -33,10 +33,7 @@ OPropertyContainer2::~OPropertyContainer2() {}
Sequence<Type> OPropertyContainer2::getBaseTypes()
{
// just the types from our one and only base class
- ::cppu::OTypeCollection aTypes(cppu::UnoType<XPropertySet>::get(),
- cppu::UnoType<XFastPropertySet>::get(),
- cppu::UnoType<XMultiPropertySet>::get());
- return aTypes.getTypes();
+ return comphelper::OPropertySetHelper::getTypes();
}
bool OPropertyContainer2::convertFastPropertyValue(std::unique_lock<std::mutex>& /*rGuard*/,
diff --git a/cppuhelper/source/component.cxx b/cppuhelper/source/component.cxx
index 5c7226f93a1a7..3861f35f03bde 100644
--- a/cppuhelper/source/component.cxx
+++ b/cppuhelper/source/component.cxx
@@ -107,13 +107,13 @@ void OComponentHelper::release() noexcept
Sequence< Type > OComponentHelper::getTypes()
{
- static OTypeCollection s_aTypes(
+ static const Sequence s_aTypes {
cppu::UnoType<lang::XComponent>::get(),
cppu::UnoType<lang::XTypeProvider>::get(),
cppu::UnoType<XAggregation>::get(),
- cppu::UnoType<XWeak>::get() );
+ cppu::UnoType<XWeak>::get() };
- return s_aTypes.getTypes();
+ return s_aTypes;
}
// XComponent