Kaydet (Commit) 76374aa9 authored tarafından Julien Nabet's avatar Julien Nabet

Replace list by vector for ScMyColumnRowGroupVec sc/xml

Change-Id: I95292f370d38a95b229f47c10652dfab077299b3
Reviewed-on: https://gerrit.libreoffice.org/71888
Tested-by: Jenkins
Reviewed-by: 's avatarJulien Nabet <serval2412@yahoo.fr>
üst c6716196
......@@ -95,9 +95,8 @@ void ScMyOpenCloseColumnRowGroup::OpenGroup(const ScMyColumnRowGroup& rGroup)
void ScMyOpenCloseColumnRowGroup::OpenGroups(const sal_Int32 nField)
{
ScMyColumnRowGroupVec::iterator aItr(aTableStart.begin());
ScMyColumnRowGroupVec::iterator aEndItr(aTableStart.end());
bool bReady(false);
while(!bReady && aItr != aEndItr)
while(!bReady && aItr != aTableStart.end())
{
if (aItr->nField == nField)
{
......@@ -144,7 +143,7 @@ sal_Int32 ScMyOpenCloseColumnRowGroup::GetLast()
void ScMyOpenCloseColumnRowGroup::Sort()
{
aTableStart.sort();
std::sort(aTableStart.begin(), aTableStart.end());
std::sort(aTableEnd.begin(), aTableEnd.end());
}
......
......@@ -20,7 +20,6 @@
#ifndef INCLUDED_SC_SOURCE_FILTER_XML_XMLCOLUMNROWGROUPEXPORT_HXX
#define INCLUDED_SC_SOURCE_FILTER_XML_XMLCOLUMNROWGROUPEXPORT_HXX
#include <list>
#include <vector>
#include <rtl/ustring.hxx>
#include <sal/types.h>
......@@ -35,7 +34,7 @@ struct ScMyColumnRowGroup
bool operator< (const ScMyColumnRowGroup& rGroup) const;
};
typedef std::list<ScMyColumnRowGroup> ScMyColumnRowGroupVec;
typedef std::vector<ScMyColumnRowGroup> ScMyColumnRowGroupVec;
typedef std::vector<sal_Int32> ScMyFieldGroupVec;
class ScXMLExport;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment