From 62243e3bec9dd043ef307b930038312829e3ecff Mon Sep 17 00:00:00 2001 From: Andreas Schlüns Date: Thu, 29 Nov 2001 08:57:37 +0000 Subject: #94233# prevent code against possible crash during Clear() call --- svtools/source/config/dynamicmenuoptions.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'svtools/source/config') 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(); } //--------------------------------------------------------------------------------------------------------- -- cgit