summaryrefslogtreecommitdiff
path: root/xmloff/source
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-08-01 11:00:18 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-08-01 20:06:21 +0200
commit5678db6ff2d8d1e1bc73972b8af8e6d063d499ad (patch)
tree5b9589a484fad269fd5cee6159349a404218cbe8 /xmloff/source
parentd3a297110a1948ebc417717c78c489ddb58e2002 (diff)
o3tl::sorted_vector is better for small sets of pointers
Change-Id: Ice284159b1666d930903eb53315e8a3c777c2a16 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119815 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source')
-rw-r--r--xmloff/source/forms/layerexport.cxx2
-rw-r--r--xmloff/source/forms/layerexport.hxx5
2 files changed, 3 insertions, 4 deletions
diff --git a/xmloff/source/forms/layerexport.cxx b/xmloff/source/forms/layerexport.cxx
index e87d8fae9fc3..c6d9edf17378 100644
--- a/xmloff/source/forms/layerexport.cxx
+++ b/xmloff/source/forms/layerexport.cxx
@@ -717,7 +717,7 @@ namespace xmloff
{
Reference< XPropertySet > xProps( _rxControl, UNO_QUERY );
OSL_ENSURE( xProps.is(), "OFormLayerXMLExport_Impl::excludeFromExport: invalid control model!" );
- ::std::pair< PropertySetBag::iterator, bool > aPos =
+ ::std::pair< PropertySetBag::const_iterator, bool > aPos =
m_aIgnoreList.insert( xProps );
OSL_ENSURE( aPos.second, "OFormLayerXMLExport_Impl::excludeFromExport: element already exists in the ignore list!" );
}
diff --git a/xmloff/source/forms/layerexport.hxx b/xmloff/source/forms/layerexport.hxx
index 3fabafb57b5a..39e6b5667c0f 100644
--- a/xmloff/source/forms/layerexport.hxx
+++ b/xmloff/source/forms/layerexport.hxx
@@ -22,7 +22,6 @@
#include <sal/config.h>
#include <map>
-#include <set>
#include <com/sun/star/container/XIndexAccess.hpp>
#include <com/sun/star/drawing/XDrawPage.hpp>
@@ -31,6 +30,7 @@
#include <com/sun/star/awt/XControlModel.hpp>
#include "callbacks.hxx"
#include <rtl/ref.hxx>
+#include <o3tl/sorted_vector.hxx>
class SvXMLExport;
class SvXMLNumFmtExport;
@@ -40,8 +40,7 @@ class SvXMLExportPropertyMapper;
namespace xmloff
{
- typedef ::std::set < css::uno::Reference< css::beans::XPropertySet >
- > PropertySetBag;
+ typedef o3tl::sorted_vector< css::uno::Reference< css::beans::XPropertySet > > PropertySetBag;
// maps objects (property sets) to strings, e.g. control ids.
typedef ::std::map < css::uno::Reference< css::beans::XPropertySet >