summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2012-07-19 14:00:55 +0200
committerDavid Tardon <dtardon@redhat.com>2012-07-19 14:02:11 +0200
commit859018061956b1937c7be3809a9858cbd610fa9c (patch)
tree7d5b1dfa3b0327b73abde01a6dc8c7fb3fa44cc8
parent85b35ac289f661f64cdddd145deaf419f61f5d4c (diff)
fdo#52241 remove just one entry
Change-Id: Ida7920c3196105f7f8aab519da12e79135839345
-rw-r--r--sw/source/core/fields/authfld.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/core/fields/authfld.cxx b/sw/source/core/fields/authfld.cxx
index 1f3c24b7ecc7..ccfdfcfe4acc 100644
--- a/sw/source/core/fields/authfld.cxx
+++ b/sw/source/core/fields/authfld.cxx
@@ -322,9 +322,8 @@ sal_uInt16 SwAuthorityFieldType::GetSequencePos(long nHandle)
DELETEZ(pNew);
else // remove the old content
{
- for (SwTOXSortTabBases::const_iterator it = aSortArr.begin(); it != aSortArr.end(); ++it)
- delete *it;
- aSortArr.clear();
+ aSortArr.erase(aSortArr.begin() + i);
+ delete pOld;
}
break;
}