From f86cafc3c7baab6f08263e4550dffa26f51811bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Timm?= Date: Tue, 3 Apr 2007 13:08:01 +0000 Subject: [PATCH] INTEGRATION: CWS salstrintern (1.45.28); FILE MERGED 2007/02/08 14:23:59 mmeeks 1.45.28.1: Issue number: i#74343 Submitted by: mmeeks 'intern' all ZipFile stream name strings - they're duplicated elsewhere. --- package/source/zipapi/ZipFile.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package/source/zipapi/ZipFile.cxx b/package/source/zipapi/ZipFile.cxx index 74d63a18d408..7ee1febe4a75 100644 --- a/package/source/zipapi/ZipFile.cxx +++ b/package/source/zipapi/ZipFile.cxx @@ -4,9 +4,9 @@ * * $RCSfile: ZipFile.cxx,v $ * - * $Revision: 1.45 $ + * $Revision: 1.46 $ * - * last change: $Author: obo $ $Date: 2006-09-17 17:28:16 $ + * last change: $Author: rt $ $Date: 2007-04-03 14:08:01 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -798,9 +798,9 @@ sal_Int32 ZipFile::readCEN() if ( aEntry.nExtraLen > ZIP_MAXEXTRA ) throw ZipException( OUString( RTL_CONSTASCII_USTRINGPARAM ( "extra header info exceeds ZIP_MAXEXTRA bytes") ), Reference < XInterface > () ); - aEntry.sName = OUString ( (sal_Char *) aMemGrabber.getCurrentPos(), - aEntry.nNameLen, - RTL_TEXTENCODING_ASCII_US); + aEntry.sName = rtl::OUString::intern ( (sal_Char *) aMemGrabber.getCurrentPos(), + aEntry.nNameLen, + RTL_TEXTENCODING_ASCII_US); aMemGrabber.skipBytes( aEntry.nNameLen + aEntry.nExtraLen + nCommentLen ); aEntries[aEntry.sName] = aEntry;