From 62cf97f91691ce983dcffa9cf318f3f52c77e2f0 Mon Sep 17 00:00:00 2001 From: RĂ¼diger Timm Date: Wed, 2 Jul 2008 08:58:48 +0000 Subject: INTEGRATION: CWS npower10 (1.14.64); FILE MERGED 2008/05/07 07:10:39 pflin 1.14.64.2: RESYNC: (1.14-1.15); FILE MERGED 2007/12/20 21:23:01 npower 1.14.64.1: #58089 --- basic/source/comp/sbcomp.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'basic/source') diff --git a/basic/source/comp/sbcomp.cxx b/basic/source/comp/sbcomp.cxx index fd1cf2593a45..ca748f239cf8 100644 --- a/basic/source/comp/sbcomp.cxx +++ b/basic/source/comp/sbcomp.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: sbcomp.cxx,v $ - * $Revision: 1.15 $ + * $Revision: 1.16 $ * * This file is part of OpenOffice.org. * @@ -134,6 +134,13 @@ BOOL SbModule::Compile() if( bRet ) { pBasic->ClearAllModuleVars(); + // clear all method statics + for( USHORT i = 0; i < pMethods->Count(); i++ ) + { + SbMethod* p = PTR_CAST(SbMethod,pMethods->Get( i ) ); + if( p ) + p->ClearStatics(); + } // #i31510 Init other libs only if Basic isn't running if( pINST == NULL ) -- cgit v1.2.3