summaryrefslogtreecommitdiff
path: root/sw/source/core/fields
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/fields')
-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;
}