summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorMartin Gallwey <mtg@openoffice.org>2001-10-30 12:54:47 +0000
committerMartin Gallwey <mtg@openoffice.org>2001-10-30 12:54:47 +0000
commite6333045526efc0a97c81360ab966cf94c1a5e77 (patch)
tree9378878d515e0414965b911ba099e3e830d7c627 /package
parentfb61e2a5dfad6ffd8329fa6fcb91ade56f78853a (diff)
#93877# derive ContentInfo from OWeakObject so we can use it in an ORef
Diffstat (limited to 'package')
-rw-r--r--package/source/zippackage/ContentInfo.hxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/package/source/zippackage/ContentInfo.hxx b/package/source/zippackage/ContentInfo.hxx
index 2fc533272cd0..79af33d72da4 100644
--- a/package/source/zippackage/ContentInfo.hxx
+++ b/package/source/zippackage/ContentInfo.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ContentInfo.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: mtg $ $Date: 2001-10-26 21:46:08 $
+ * last change: $Author: mtg $ $Date: 2001-10-30 13:54:47 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -75,8 +75,9 @@
#endif
#include <hash_map>
-struct ContentInfo
+class ContentInfo : public cppu::OWeakObject
{
+public:
com::sun::star::uno::Reference < com::sun::star::lang::XUnoTunnel > xTunnel;
bool bFolder;
union
@@ -96,9 +97,9 @@ struct ContentInfo
, xTunnel ( pNewFolder )
{
}
- ~ContentInfo ()
+ virtual ~ContentInfo ()
{
- if (bFolder)
+ if ( bFolder )
pFolder->releaseUpwardRef();
}
};