Kaydet (Commit) ab23efcc authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1308431 wiggle code to see if this silences coverity

Change-Id: I44eae735b710332d87f2f642911e988c796457cd
üst 98c6cf40
...@@ -874,8 +874,10 @@ void ShapeSortContext::popGroupAndSort() ...@@ -874,8 +874,10 @@ void ShapeSortContext::popGroupAndSort()
{ {
while( nIndex < rHint.nShould && !maUnsortedList.empty() ) while( nIndex < rHint.nShould && !maUnsortedList.empty() )
{ {
ZOrderHint aGapHint( *maUnsortedList.begin() ); auto it = maUnsortedList.begin();
maUnsortedList.erase(maUnsortedList.begin());
ZOrderHint aGapHint(*it);
maUnsortedList.erase(it);
moveShape( aGapHint.nIs, nIndex++ ); moveShape( aGapHint.nIs, nIndex++ );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment