From edc8d9650d7fbd98d6b301c662724c97f61128e5 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 20 Jul 2019 15:38:15 +0100 Subject: cid#1448322 try silence Splice iterator mismatch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: If419d66811e5a60d50575f7b984811a29785459a Reviewed-on: https://gerrit.libreoffice.org/76019 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- starmath/source/cursor.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'starmath/source/cursor.cxx') diff --git a/starmath/source/cursor.cxx b/starmath/source/cursor.cxx index 538a4f26bf94..2d74d454a2f6 100644 --- a/starmath/source/cursor.cxx +++ b/starmath/source/cursor.cxx @@ -743,7 +743,8 @@ bool SmCursor::InsertRow() { if(pTable) { std::unique_ptr pNewLineList(new SmNodeList); //Move elements from pLineList to pNewLineList - pNewLineList->splice(pNewLineList->begin(), *pLineList, it, pLineList->end()); + SmNodeList& rLineList = *pLineList; + pNewLineList->splice(pNewLineList->begin(), rLineList, it, rLineList.end()); //Make sure it is valid again it = pLineList->end(); if(it != pLineList->begin()) -- cgit