[Libreoffice-commits] .: Branch 'libreoffice-3-6' - sw/source
Lubos Lunak
llunak at kemper.freedesktop.org
Thu Jul 19 05:52:37 PDT 2012
sw/source/core/fields/authfld.cxx | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
New commits:
commit 48d61f4ad1eb4f8a031e65c3fcbebc5023d600e9
Author: David Tardon <dtardon at redhat.com>
Date: Thu Jul 19 14:00:55 2012 +0200
fdo#52241 remove just one entry
Change-Id: Ida7920c3196105f7f8aab519da12e79135839345
(cherry picked from commit 859018061956b1937c7be3809a9858cbd610fa9c)
Signed-off-by: LuboÅ¡ LuÅák <l.lunak at suse.cz>
diff --git a/sw/source/core/fields/authfld.cxx b/sw/source/core/fields/authfld.cxx
index 1f3c24b..ccfdfcf 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;
}
More information about the Libreoffice-commits
mailing list