chart2/source/inc/OPropertySet.hxx   |    5 ++---
 chart2/source/tools/OPropertySet.cxx |    4 ++--
 2 files changed, 4 insertions(+), 5 deletions(-)

New commits:
commit 8f6dd1fde5d99418d2db4b547f9761f3449d3490
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Sun Apr 2 18:35:03 2023 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Sun Apr 2 21:45:04 2023 +0200

    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 <noel.gran...@collabora.co.uk>

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 <com/sun/star/style/XStyleSupplier.hpp>
 #include "charttoolsdllapi.hxx"
 
-#include <map>
+#include <unordered_map>
 
 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 )
     {

Reply via email to