summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2023-04-02 18:35:03 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-04-02 21:45:04 +0200
commit8f6dd1fde5d99418d2db4b547f9761f3449d3490 (patch)
tree30b956600fbc8cfc2020016c49ec836eb5fd74ba /chart2
parent0b32750a8dcc8cec2922e93ce34151006d3517b0 (diff)
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.grandin@collabora.co.uk>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/inc/OPropertySet.hxx5
-rw-r--r--chart2/source/tools/OPropertySet.cxx4
2 files changed, 4 insertions, 5 deletions
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 )
{