From 8f6dd1fde5d99418d2db4b547f9761f3449d3490 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 2 Apr 2023 18:35:03 +0200 Subject: map->unordered_map in chart OPropertySet no need for ordering here Change-Id: I7e0928284c98aca297d4452e65efd8a4f3b1e56d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149941 Tested-by: Jenkins Reviewed-by: Noel Grandin --- chart2/source/inc/OPropertySet.hxx | 5 ++--- chart2/source/tools/OPropertySet.cxx | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'chart2/source') diff --git a/chart2/source/inc/OPropertySet.hxx b/chart2/source/inc/OPropertySet.hxx index d78312878798..6e7770174c75 100644 --- a/chart2/source/inc/OPropertySet.hxx +++ b/chart2/source/inc/OPropertySet.hxx @@ -29,7 +29,7 @@ #include #include "charttoolsdllapi.hxx" -#include +#include namespace property { @@ -224,8 +224,7 @@ private: bool SetStyle( const css::uno::Reference< css::style::XStyle > & xStyle ); bool m_bSetNewValuesExplicitlyEvenIfTheyEqualDefault; - typedef std::map< sal_Int32, css::uno::Any > tPropertyMap; - tPropertyMap m_aProperties; + std::unordered_map< sal_Int32, css::uno::Any > m_aProperties; css::uno::Reference< css::style::XStyle > m_xStyle; }; diff --git a/chart2/source/tools/OPropertySet.cxx b/chart2/source/tools/OPropertySet.cxx index 817fb44a2c8d..d029c51763bb 100644 --- a/chart2/source/tools/OPropertySet.cxx +++ b/chart2/source/tools/OPropertySet.cxx @@ -408,7 +408,7 @@ Sequence< beans::PropertyState > OPropertySet::GetPropertyStatesByHandle( void OPropertySet::SetPropertyToDefault( sal_Int32 nHandle ) { - tPropertyMap::iterator aFoundIter( m_aProperties.find( nHandle ) ); + auto aFoundIter( m_aProperties.find( nHandle ) ); if( m_aProperties.end() != aFoundIter ) { @@ -434,7 +434,7 @@ bool OPropertySet::GetPropertyValueByHandle( { bool bResult = false; - tPropertyMap::const_iterator aFoundIter( m_aProperties.find( nHandle ) ); + auto aFoundIter( m_aProperties.find( nHandle ) ); if( m_aProperties.end() != aFoundIter ) { -- cgit