diff options
Diffstat (limited to 'chart2/source/tools/OPropertySet.cxx')
-rw-r--r-- | chart2/source/tools/OPropertySet.cxx | 35 |
1 files changed, 9 insertions, 26 deletions
diff --git a/chart2/source/tools/OPropertySet.cxx b/chart2/source/tools/OPropertySet.cxx index 7ed2ce3a1428..0dcf03c0da1a 100644 --- a/chart2/source/tools/OPropertySet.cxx +++ b/chart2/source/tools/OPropertySet.cxx @@ -19,10 +19,7 @@ #include "OPropertySet.hxx" #include "ImplOPropertySet.hxx" -#include "ContainerHelper.hxx" #include <cppuhelper/queryinterface.hxx> -#include <comphelper/servicehelper.hxx> -#include <comphelper/sequence.hxx> #include <vector> #include <algorithm> @@ -30,8 +27,6 @@ using namespace ::com::sun::star; -using ::com::sun::star::style::XStyleSupplier; - using ::com::sun::star::uno::Reference; using ::com::sun::star::uno::Sequence; using ::com::sun::star::uno::Any; @@ -85,34 +80,22 @@ Any SAL_CALL OPropertySet::queryInterface( const uno::Type& aType ) static_cast< beans::XFastPropertySet * >( this ), static_cast< beans::XPropertyState * >( this ), static_cast< beans::XMultiPropertyStates * >( this ), - static_cast< XStyleSupplier * >( this ) ); + static_cast< style::XStyleSupplier * >( this ) ); } -#define LCL_PROP_CPPUTYPE(t) (cppu::UnoType<t>::get()) - // ____ XTypeProvider ____ Sequence< uno::Type > SAL_CALL OPropertySet::getTypes() throw (uno::RuntimeException, std::exception) { - static Sequence< uno::Type > aTypeList; - - MutexGuard aGuard( m_rMutex ); - - if( aTypeList.getLength() == 0 ) - { - ::std::vector< uno::Type > aTypes; - - aTypes.push_back( LCL_PROP_CPPUTYPE( lang::XTypeProvider )); - aTypes.push_back( LCL_PROP_CPPUTYPE( beans::XPropertySet )); - aTypes.push_back( LCL_PROP_CPPUTYPE( beans::XMultiPropertySet )); - aTypes.push_back( LCL_PROP_CPPUTYPE( beans::XFastPropertySet )); - aTypes.push_back( LCL_PROP_CPPUTYPE( beans::XPropertyState )); - aTypes.push_back( LCL_PROP_CPPUTYPE( beans::XMultiPropertyStates )); - aTypes.push_back( LCL_PROP_CPPUTYPE( XStyleSupplier )); - - aTypeList = comphelper::containerToSequence( aTypes ); - } + static const Sequence< uno::Type > aTypeList{ + cppu::UnoType<lang::XTypeProvider>::get(), + cppu::UnoType<beans::XPropertySet>::get(), + cppu::UnoType<beans::XMultiPropertySet>::get(), + cppu::UnoType<beans::XFastPropertySet>::get(), + cppu::UnoType<beans::XPropertyState>::get(), + cppu::UnoType<beans::XMultiPropertyStates>::get(), + cppu::UnoType<style::XStyleSupplier>::get() }; return aTypeList; } |