summaryrefslogtreecommitdiff
path: root/svtools/source/config
diff options
context:
space:
mode:
authorAndreas Schlüns <as@openoffice.org>2001-11-29 08:57:37 +0000
committerAndreas Schlüns <as@openoffice.org>2001-11-29 08:57:37 +0000
commit62243e3bec9dd043ef307b930038312829e3ecff (patch)
treedf6278a58d641edfe8adacec01905d912ecccd70 /svtools/source/config
parent2d84420697f568e7a6f35e370c693fd4f779bab3 (diff)
#94233# prevent code against possible crash during Clear() call
Diffstat (limited to 'svtools/source/config')
-rw-r--r--svtools/source/config/dynamicmenuoptions.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/svtools/source/config/dynamicmenuoptions.cxx b/svtools/source/config/dynamicmenuoptions.cxx
index 6f45df390778..0fd1b9efb1a5 100644
--- a/svtools/source/config/dynamicmenuoptions.cxx
+++ b/svtools/source/config/dynamicmenuoptions.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: dynamicmenuoptions.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: as $ $Date: 2001-11-28 14:43:09 $
+ * last change: $Author: as $ $Date: 2001-11-29 09:57:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -208,8 +208,8 @@ class Menu
// the only way to free memory!
void Clear()
{
- vector< MenuEntry >().swap( lSetupEntries );
- vector< MenuEntry >().swap( lUserEntries );
+ lSetupEntries.clear();
+ lUserEntries.clear();
}
//---------------------------------------------------------------------------------------------------------