std::set->o3tl::sorted_vector in xmloff
Change-Id: Iba07a9905f37c2fb00d59ac00703744e5f81b1c7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104906 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
committed by
Noel Grandin
parent
4b6ebf3b4f
commit
917401207e
@@ -44,6 +44,7 @@
|
||||
#include <xmloff/xmluconv.hxx>
|
||||
#include <xmloff/SchXMLSeriesHelper.hxx>
|
||||
#include <rtl/math.hxx>
|
||||
#include <o3tl/sorted_vector.hxx>
|
||||
|
||||
#include <vector>
|
||||
#include <algorithm>
|
||||
@@ -3363,9 +3364,11 @@ void SchXMLExportHelper_Impl::exportDataPoints(
|
||||
// collect elements
|
||||
if( bVaryColorsByPoint && xColorScheme.is() )
|
||||
{
|
||||
::std::set< sal_Int32 > aAttrPointSet;
|
||||
aAttrPointSet.insert( pPoints, pPoints + aDataPointSeq.getLength() );
|
||||
const ::std::set< sal_Int32 >::const_iterator aEndIt( aAttrPointSet.end());
|
||||
o3tl::sorted_vector< sal_Int32 > aAttrPointSet;
|
||||
aAttrPointSet.reserve(aDataPointSeq.getLength());
|
||||
for (auto p = pPoints; p < pPoints + aDataPointSeq.getLength(); ++p)
|
||||
aAttrPointSet.insert( *p );
|
||||
const auto aEndIt = aAttrPointSet.end();
|
||||
for( nElement = 0; nElement < nSeriesLength; ++nElement )
|
||||
{
|
||||
aPropertyStates.clear();
|
||||
|
@@ -25,7 +25,7 @@
|
||||
#include <com/sun/star/container/XNameAccess.hpp>
|
||||
#include <com/sun/star/drawing/XDrawPage.hpp>
|
||||
|
||||
#include <set>
|
||||
#include <o3tl/sorted_vector.hxx>
|
||||
#include <vector>
|
||||
|
||||
namespace tools { class Rectangle; }
|
||||
@@ -54,7 +54,7 @@ enum XmlPlaceholder
|
||||
XmlPlaceholderVerticalOutline
|
||||
};
|
||||
|
||||
typedef std::set<sal_Int32> SdXMLFormatMap;
|
||||
typedef o3tl::sorted_vector<sal_Int32> SdXMLFormatMap;
|
||||
|
||||
struct HeaderFooterPageSettingsImpl
|
||||
{
|
||||
|
@@ -1293,7 +1293,7 @@ namespace xmloff
|
||||
++pValues;
|
||||
}
|
||||
|
||||
Int16Set::iterator aSelectedPos = aSelection.find(i);
|
||||
Int16Set::const_iterator aSelectedPos = aSelection.find(i);
|
||||
if (aSelection.end() != aSelectedPos)
|
||||
{ // the item at this position is selected
|
||||
AddAttribute(
|
||||
@@ -1304,7 +1304,7 @@ namespace xmloff
|
||||
aSelection.erase(aSelectedPos);
|
||||
}
|
||||
|
||||
Int16Set::iterator aDefaultSelectedPos = aDefaultSelection.find(i);
|
||||
Int16Set::const_iterator aDefaultSelectedPos = aDefaultSelection.find(i);
|
||||
if (aDefaultSelection.end() != aDefaultSelectedPos)
|
||||
{ // the item at this position is selected as default
|
||||
AddAttribute(
|
||||
|
@@ -23,7 +23,7 @@
|
||||
#include <sal/config.h>
|
||||
|
||||
#include <memory>
|
||||
#include <set>
|
||||
#include <o3tl/sorted_vector.hxx>
|
||||
|
||||
#include <com/sun/star/beans/XPropertySet.hpp>
|
||||
#include <com/sun/star/script/ScriptEventDescriptor.hpp>
|
||||
@@ -88,7 +88,7 @@ namespace xmloff
|
||||
,public OElementExport
|
||||
{
|
||||
protected:
|
||||
typedef std::set<sal_Int16> Int16Set;
|
||||
typedef o3tl::sorted_vector<sal_Int16> Int16Set;
|
||||
// used below
|
||||
|
||||
OUString m_sControlId; // the control id to use when exporting
|
||||
|
Reference in New Issue
Block a user