summaryrefslogtreecommitdiffstats
path: root/package/inc/HashMaps.hxx
diff options
context:
space:
mode:
authorMartin Gallwey <mtg@openoffice.org>2001-10-26 20:41:28 +0000
committerMartin Gallwey <mtg@openoffice.org>2001-10-26 20:41:28 +0000
commitfa24eba19a86ee344dd20225a8c8c039011bfe87 (patch)
tree6e3e9f2de9a7ec9ffa62fee22d43627fec6c11c3 /package/inc/HashMaps.hxx
parent#92924# includes (diff)
downloadcore-fa24eba19a86ee344dd20225a8c8c039011bfe87.tar.gz
core-fa24eba19a86ee344dd20225a8c8c039011bfe87.zip
#93877# use auto_ptr's to make sure that that ContentInfo pointers are always deleted
Diffstat (limited to 'package/inc/HashMaps.hxx')
-rw-r--r--package/inc/HashMaps.hxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/package/inc/HashMaps.hxx b/package/inc/HashMaps.hxx
index 691722520b5b..1864c9f38f09 100644
--- a/package/inc/HashMaps.hxx
+++ b/package/inc/HashMaps.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: HashMaps.hxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: mtg $ $Date: 2001-09-14 14:38:16 $
+ * last change: $Author: mtg $ $Date: 2001-10-26 21:41:28 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -71,6 +71,7 @@
#include <ZipEntry.hxx>
#endif
#include <hash_map>
+#include <memory>
struct eqFunc
{
@@ -90,7 +91,7 @@ typedef std::hash_map < rtl::OUString,
eqFunc > FolderHash;
typedef std::hash_map < rtl::OUString,
- ContentInfo *,
+ std::auto_ptr < ContentInfo >,
::rtl::OUStringHash,
eqFunc > ContentHash;