From ab23efcc2bb9ca178dee16b3d01eabb3f80d8e17 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 30 Jun 2015 17:31:27 +0100 Subject: coverity#1308431 wiggle code to see if this silences coverity Change-Id: I44eae735b710332d87f2f642911e988c796457cd --- xmloff/source/draw/shapeimport.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xmloff/source/draw/shapeimport.cxx b/xmloff/source/draw/shapeimport.cxx index c155b548a4d8..322d27cbe983 100644 --- a/xmloff/source/draw/shapeimport.cxx +++ b/xmloff/source/draw/shapeimport.cxx @@ -874,8 +874,10 @@ void ShapeSortContext::popGroupAndSort() { while( nIndex < rHint.nShould && !maUnsortedList.empty() ) { - ZOrderHint aGapHint( *maUnsortedList.begin() ); - maUnsortedList.erase(maUnsortedList.begin()); + auto it = maUnsortedList.begin(); + + ZOrderHint aGapHint(*it); + maUnsortedList.erase(it); moveShape( aGapHint.nIs, nIndex++ ); } -- cgit