Revert "Revert "std::list<sal_uLong> to deque""
+ use returned iterator by insert method call
This reverts commit 1a583283d6
.
Change-Id: I02547663230fb7b5959df349c4d395bbadd74c3b
Reviewed-on: https://gerrit.libreoffice.org/30439
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
#include <redline.hxx>
|
||||
#include <fmtfsize.hxx>
|
||||
#include <list>
|
||||
#include <deque>
|
||||
#include <memory>
|
||||
#include <o3tl/make_unique.hxx>
|
||||
|
||||
@@ -68,7 +69,7 @@ namespace
|
||||
|
||||
typedef std::vector< BoxSpanInfo > BoxStructure;
|
||||
typedef std::vector< BoxStructure > LineStructure;
|
||||
typedef std::list< sal_uLong > ColumnStructure;
|
||||
typedef std::deque< sal_uLong > ColumnStructure;
|
||||
|
||||
struct SubBox
|
||||
{
|
||||
@@ -334,7 +335,7 @@ namespace
|
||||
}
|
||||
if( rpCol == maCols.end() || *rpCol > rnBorder )
|
||||
{
|
||||
maCols.insert( rpCol, rnBorder );
|
||||
rpCol = maCols.insert( rpCol, rnBorder );
|
||||
--rpCol;
|
||||
incColSpan( nLine, rnCol );
|
||||
}
|
||||
|
Reference in New Issue
Block a user