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>
This commit is contained in:
Noel Grandin
2023-04-02 21:45:04 +02:00
committed by Noel Grandin
parent 0b32750a8d
commit 8f6dd1fde5
2 changed files with 4 additions and 5 deletions
+2 -3
View File
@@ -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;
};
+2 -2
View File
@@ -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 )
{