summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-20 04:53:20 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-20 04:53:20 +0000
commit060983cdb2bf68bca9fe82b9f97307b482c66512 (patch)
tree731858811f1f16a4a15514eecafa1c14efb17f9e /sot
parent61e53ca020ad001a90016a7076e566f14015b397 (diff)
INTEGRATION: CWS warnings01 (1.5.8); FILE MERGED
2005/10/28 16:15:27 pl 1.5.8.2: #i55991# removed warnings for solaris platform 2005/10/21 16:25:07 pl 1.5.8.1: #i55991# removed warnings for linux platform
Diffstat (limited to 'sot')
-rw-r--r--sot/source/base/object.cxx22
1 files changed, 10 insertions, 12 deletions
diff --git a/sot/source/base/object.cxx b/sot/source/base/object.cxx
index a43bc35f73c5..ccd2a3eab56c 100644
--- a/sot/source/base/object.cxx
+++ b/sot/source/base/object.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: object.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: rt $ $Date: 2005-09-08 07:39:15 $
+ * last change: $Author: hr $ $Date: 2006-06-20 05:53:20 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -39,7 +39,6 @@
#include <object.hxx>
#include <factory.hxx>
#include <agg.hxx>
-#pragma hdrstop
/************** class SvAggregateMemberList *****************************/
/************************************************************************/
@@ -90,9 +89,9 @@ void SotObject::TestMemberInvariant( BOOL /*bPrint*/ )
|* Beschreibung
*************************************************************************/
SotObject::SotObject()
- : nStrongLockCount( 0 )
+ : pAggList ( NULL )
+ , nStrongLockCount( 0 )
, nOwnerLockCount( 0 )
- , pAggList ( NULL )
, bOwner ( TRUE )
, bSVObject ( FALSE )
, bInClose ( FALSE )
@@ -139,7 +138,7 @@ BOOL SotObject::IsSvObject() const
|*
|* Beschreibung: Bei allen aggregierten Objekte muss der RefCount auf
|* 0 gehen, damit das Gesammt-Objekt zerstoert wird. Das
-|* zerst”ren von Teilen ist verboten. Da der Aggregator
+|* zerst�ren von Teilen ist verboten. Da der Aggregator
|* (oder Cast-Verwalter) den Zaehler der aggregierten
|* Objekte um 1 erhoeht, muss dies bei der Berechnung
|* des 0-RefCounts beruecksichtigt werden.
@@ -175,8 +174,7 @@ BOOL SotObject::ShouldDelete()
for( i = pAggList->Count() -1; i > 0; i-- )
{
// Referenzen aufloesen
- SvAggregate & rEle = pAggList->GetObject( i );
- DBG_ASSERT( !rEle.bMainObj, "main object reference is opened" )
+ DBG_ASSERT( !pAggList->GetObject( i ).bMainObj, "main object reference is opened" )
RemoveInterface( i );
}
delete pAggList;
@@ -391,10 +389,10 @@ SotObject * SotObject::GetMainObj() const
//=========================================================================
USHORT SotObject::FuzzyLock
(
- BOOL bLock, /* TRUE, lock. FALSE, unlock. */
- BOOL bIntern, /* TRUE, es handelt sich um einen internen Lock.
- FALSE, der Lock kam von aussen (Ole2, Ipc2) */
- BOOL bClose /* TRUE, Close aufrufen wenn letzte Lock */
+ BOOL bLock, /* TRUE, lock. FALSE, unlock. */
+ BOOL /*bIntern*/, /* TRUE, es handelt sich um einen internen Lock.
+ FALSE, der Lock kam von aussen (Ole2, Ipc2) */
+ BOOL bClose /* TRUE, Close aufrufen wenn letzte Lock */
)
/* [Beschreibung]