summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-07-02 08:57:20 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-07-02 08:57:20 +0000
commit713eafec1385f6c1f42ce3f91e4442a65813c31b (patch)
treee2f5c6ef646f29ab6e32dfbfbef03ba2acdf19be /basic
parentbafc845c2b824ef35b3f2b0ac8bab2b175f26943 (diff)
INTEGRATION: CWS npower10 (1.41.34); FILE MERGED
2008/05/07 07:11:30 pflin 1.41.34.3: RESYNC: (1.41-1.42); FILE MERGED 2008/03/03 20:08:35 npower 1.41.34.2: #i58089# 2007/12/20 21:23:01 npower 1.41.34.1: #58089
Diffstat (limited to 'basic')
-rw-r--r--basic/source/classes/sbxmod.cxx12
1 files changed, 9 insertions, 3 deletions
diff --git a/basic/source/classes/sbxmod.cxx b/basic/source/classes/sbxmod.cxx
index e97ca6bc91..c3d4c05917 100644
--- a/basic/source/classes/sbxmod.cxx
+++ b/basic/source/classes/sbxmod.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: sbxmod.cxx,v $
- * $Revision: 1.43 $
+ * $Revision: 1.44 $
*
* This file is part of OpenOffice.org.
*
@@ -1926,6 +1926,7 @@ SbMethod::SbMethod( const String& r, SbxDataType t, SbModule* p )
nDebugFlags =
nLine1 =
nLine2 = 0;
+ refStatics = new SbxArray;
// AB: 2.7.1996: HACK wegen 'Referenz kann nicht gesichert werden'
SetFlag( SBX_NO_MODIFY );
}
@@ -1939,6 +1940,7 @@ SbMethod::SbMethod( const SbMethod& r )
nDebugFlags = r.nDebugFlags;
nLine1 = r.nLine1;
nLine2 = r.nLine2;
+ refStatics = r.refStatics;
SetFlag( SBX_NO_MODIFY );
}
@@ -1954,10 +1956,14 @@ SbxArray* SbMethod::GetLocals()
return NULL;
}
+void SbMethod::ClearStatics()
+{
+ refStatics = new SbxArray;
+
+}
SbxArray* SbMethod::GetStatics()
{
- DBG_ERROR( "SbMethod::GetStatics() invalid, AB fragen" )
- return NULL;
+ return refStatics;
}
BOOL SbMethod::LoadData( SvStream& rStrm, USHORT nVer )