diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-06-30 17:31:27 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-06-30 17:32:18 +0100 |
commit | ab23efcc2bb9ca178dee16b3d01eabb3f80d8e17 (patch) | |
tree | adea028ce71123c724de7c035f1cda23e154441e | |
parent | 98c6cf40a60c272277ca9a7baa2723a97e38b3ff (diff) |
coverity#1308431 wiggle code to see if this silences coverity
Change-Id: I44eae735b710332d87f2f642911e988c796457cd
-rw-r--r-- | xmloff/source/draw/shapeimport.cxx | 6 |
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++ ); } |