diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-16 10:19:36 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-16 10:19:36 +0100 |
commit | d3ce5b298e3f5cc58256ba80f5d3f361618c4820 (patch) | |
tree | 64dc0fd518d05d3626f6a4ce656f6e6fe9f65815 /comphelper/source | |
parent | b0eae373b02a694ed26944d20a77e7b4467074d7 (diff) |
Fix getTypes() of OPropertySetHelper and derived
...broken with 60d60caf99a40ca0c3891bf230c5a1fdbae5f49c "Renamed XPropertySet2
to XPropertySetOption" et al
Change-Id: I684736ffafc4642548b7c24171cc52c1acb32252
Diffstat (limited to 'comphelper/source')
-rw-r--r-- | comphelper/source/property/propstate.cxx | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/comphelper/source/property/propstate.cxx b/comphelper/source/property/propstate.cxx index d8f53b5e4570..8f6b90759cd6 100644 --- a/comphelper/source/property/propstate.cxx +++ b/comphelper/source/property/propstate.cxx @@ -55,15 +55,12 @@ namespace comphelper css::uno::Sequence<css::uno::Type> OPropertyStateHelper::getTypes() { - ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> aTypes(4); - ::com::sun::star::uno::Type* pTypes = aTypes.getArray(); - // base class types - pTypes[0] = cppu::UnoType<com::sun::star::beans::XPropertySet>::get(); - pTypes[1] = cppu::UnoType<com::sun::star::beans::XMultiPropertySet>::get(); - pTypes[2] = cppu::UnoType<com::sun::star::beans::XFastPropertySet>::get(); - // my own type - pTypes[3] = cppu::UnoType<com::sun::star::beans::XPropertyState>::get(); - return aTypes; + return css::uno::Sequence<css::uno::Type>({ + cppu::UnoType<css::beans::XPropertySet>::get(), + cppu::UnoType<css::beans::XMultiPropertySet>::get(), + cppu::UnoType<css::beans::XFastPropertySet>::get(), + cppu::UnoType<css::beans::XPropertySetOption>::get(), + cppu::UnoType<css::beans::XPropertyState>::get()}); } OPropertyStateHelper::OPropertyStateHelper( |