summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-06-30 17:31:27 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-06-30 17:32:18 +0100
commitab23efcc2bb9ca178dee16b3d01eabb3f80d8e17 (patch)
treeadea028ce71123c724de7c035f1cda23e154441e
parent98c6cf40a60c272277ca9a7baa2723a97e38b3ff (diff)
coverity#1308431 wiggle code to see if this silences coverity
Change-Id: I44eae735b710332d87f2f642911e988c796457cd
-rw-r--r--xmloff/source/draw/shapeimport.cxx6
1 files 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++ );
}