[Libreoffice-commits] core.git: sw/source
Julien Nabet
serval2412 at yahoo.fr
Mon Nov 21 20:28:45 UTC 2016
sw/source/core/doc/tblcpy.cxx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit f0fa43ea99ac7564f2cc7ca1d997831808056b68
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Mon Oct 31 13:14:57 2016 +0100
Revert "Revert "std::list<sal_uLong> to deque""
+ use returned iterator by insert method call
This reverts commit 1a583283d6b58c8951cb52faac82ecb24fdbf1b3.
Change-Id: I02547663230fb7b5959df349c4d395bbadd74c3b
Reviewed-on: https://gerrit.libreoffice.org/30439
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
Tested-by: Julien Nabet <serval2412 at yahoo.fr>
diff --git a/sw/source/core/doc/tblcpy.cxx b/sw/source/core/doc/tblcpy.cxx
index 7a13fd3..b5bc61c 100644
--- a/sw/source/core/doc/tblcpy.cxx
+++ b/sw/source/core/doc/tblcpy.cxx
@@ -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 );
}
More information about the Libreoffice-commits
mailing list