diff options
author | Martin Gallwey <mtg@openoffice.org> | 2001-09-14 14:17:22 +0000 |
---|---|---|
committer | Martin Gallwey <mtg@openoffice.org> | 2001-09-14 14:17:22 +0000 |
commit | b4798f2ea1b54cd50670d54571ed98af6343f985 (patch) | |
tree | 54b61578b55abec54a7a94c039d06ddae8fdf73b | |
parent | b45a26d39d5ed562d713182e95acc05d135a426a (diff) |
#89303# use optimised hash map
-rw-r--r-- | package/source/zippackage/ZipPackageFolderEnumeration.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/package/source/zippackage/ZipPackageFolderEnumeration.cxx b/package/source/zippackage/ZipPackageFolderEnumeration.cxx index 9610dd46e941..69a69a0ee148 100644 --- a/package/source/zippackage/ZipPackageFolderEnumeration.cxx +++ b/package/source/zippackage/ZipPackageFolderEnumeration.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ZipPackageFolderEnumeration.cxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: mtg $ $Date: 2000-12-19 21:55:41 $ + * last change: $Author: mtg $ $Date: 2001-09-14 15:17:22 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -61,11 +61,12 @@ #ifndef _ZIP_PACKAGE_FOLDER_ENUMERATION_HXX #include "ZipPackageFolderEnumeration.hxx" #endif - +#ifndef _CONTENT_INFO_HXX_ +#include <ContentInfo.hxx> +#endif using namespace com::sun::star; -ZipPackageFolderEnumeration::ZipPackageFolderEnumeration ( TunnelHash &rInput) -//std::hash_map < rtl::OUString, com::sun::star::uno::Reference < com::sun::star::container::XNamed >, hashFunc, eqFunc > &rContents); +ZipPackageFolderEnumeration::ZipPackageFolderEnumeration ( ContentHash &rInput) : rContents (rInput) , aIterator (rInput.begin()) { @@ -86,7 +87,7 @@ uno::Any SAL_CALL ZipPackageFolderEnumeration::nextElement( ) uno::Any aAny; if (aIterator == rContents.end() ) throw container::NoSuchElementException(); - aAny <<= (*aIterator).second; + aAny <<= (*aIterator).second->xTunnel; aIterator++; return aAny; } |