diff options
author | László Németh <laszlo.nemeth@collabora.com> | 2015-01-20 12:33:37 +0100 |
---|---|---|
committer | László Németh <laszlo.nemeth@collabora.com> | 2015-01-20 12:44:22 +0100 |
commit | 352cdc8bf8ee7bbb821d1244df6dc35bcc32f52e (patch) | |
tree | b4ffa1815d3f9ef7fca403bf60c652c7a4deb79c | |
parent | 33af00a9ae3136e8aa0fe3183a49681383cd48c7 (diff) |
fdo#88623 replace std::deque with std::vector in xlsx saving
Change-Id: I0b9c44b405e2c617c60e11a1a15eaeb867cba57e
-rw-r--r-- | sc/source/filter/excel/xetable.cxx | 2 | ||||
-rw-r--r-- | sc/source/filter/inc/xetable.hxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/filter/excel/xetable.cxx b/sc/source/filter/excel/xetable.cxx index 059d4d97f656..807ea80bde84 100644 --- a/sc/source/filter/excel/xetable.cxx +++ b/sc/source/filter/excel/xetable.cxx @@ -1226,7 +1226,7 @@ void XclExpMultiCellBase::RemoveUnusedXFIndexes( const ScfUInt16Vec& rXFIndexes if( !maXFIds.empty() && (maXFIds.front().mnXFIndex == EXC_XF_NOTFOUND) ) { SetXclCol( GetXclCol() + maXFIds.front().mnCount ); - maXFIds.pop_front(); + maXFIds.erase(maXFIds.begin(), maXFIds.begin() + 1); } if( !maXFIds.empty() && (maXFIds.back().mnXFIndex == EXC_XF_NOTFOUND) ) maXFIds.pop_back(); diff --git a/sc/source/filter/inc/xetable.hxx b/sc/source/filter/inc/xetable.hxx index 12b6ed21517c..9e16e775a66e 100644 --- a/sc/source/filter/inc/xetable.hxx +++ b/sc/source/filter/inc/xetable.hxx @@ -22,7 +22,7 @@ #include "xltable.hxx" -#include <deque> +#include <vector> #include <tools/mempool.hxx> #include "xladdress.hxx" #include "xerecord.hxx" @@ -529,7 +529,7 @@ private: virtual void WriteXmlContents( XclExpXmlStream& rStrm, const XclAddress& rAddress, sal_uInt32 nXFId, sal_uInt16 nRelCol ) = 0; private: - typedef ::std::deque< XclExpMultiXFId > XclExpMultiXFIdDeq; + typedef ::std::vector< XclExpMultiXFId > XclExpMultiXFIdDeq; sal_uInt16 mnMulRecId; /// Record ID for multiple record variant. sal_Size mnContSize; /// Data size of contents for one cell |