diff options
author | Martin Gallwey <mtg@openoffice.org> | 2001-10-30 12:52:18 +0000 |
---|---|---|
committer | Martin Gallwey <mtg@openoffice.org> | 2001-10-30 12:52:18 +0000 |
commit | 7a8bb5ae28690c3f45577031c0317d05b67b834a (patch) | |
tree | e065edbaaf5060385aa57950bfb14c33c49468a7 /package/inc/HashMaps.hxx | |
parent | #92012# decode titles before passing them to the file UCP (diff) | |
download | core-7a8bb5ae28690c3f45577031c0317d05b67b834a.tar.gz core-7a8bb5ae28690c3f45577031c0317d05b67b834a.zip |
#93877# using auto_ptr's in STL containers is apparently bad, so use ref-counted ORefs instead
Diffstat (limited to 'package/inc/HashMaps.hxx')
-rw-r--r-- | package/inc/HashMaps.hxx | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/package/inc/HashMaps.hxx b/package/inc/HashMaps.hxx index 1864c9f38f09..af0e9778092b 100644 --- a/package/inc/HashMaps.hxx +++ b/package/inc/HashMaps.hxx @@ -2,9 +2,9 @@ * * $RCSfile: HashMaps.hxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: mtg $ $Date: 2001-10-26 21:41:28 $ + * last change: $Author: mtg $ $Date: 2001-10-30 13:52:18 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -61,17 +61,13 @@ #ifndef _HASHMAPS_HXX #define _HASHMAPS_HXX -#ifndef _COM_SUN_STAR_CONTAINER_XNAMECONTAINER_HPP_ -#include <com/sun/star/container/XNameContainer.hpp> -#endif -#ifndef _COM_SUN_STAR_LANG_XUNOTUNNEl_HPP_ -#include <com/sun/star/lang/XUnoTunnel.hpp> -#endif #ifndef _ZIP_ENTRY_HXX_ #include <ZipEntry.hxx> #endif +#ifndef _VOS_REF_HXX_ +#include <vos/ref.hxx> +#endif #include <hash_map> -#include <memory> struct eqFunc { @@ -83,7 +79,7 @@ struct eqFunc }; class ZipPackageFolder; -struct ContentInfo; +class ContentInfo; typedef std::hash_map < rtl::OUString, ZipPackageFolder *, @@ -91,7 +87,7 @@ typedef std::hash_map < rtl::OUString, eqFunc > FolderHash; typedef std::hash_map < rtl::OUString, - std::auto_ptr < ContentInfo >, + vos::ORef < ContentInfo >, ::rtl::OUStringHash, eqFunc > ContentHash; |