diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-06-21 13:09:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-06-21 15:02:53 +0200 |
commit | 3ffb7efa95d900db6fdd7d8443535988adb2be70 (patch) | |
tree | 12d5a6d04a847f9cb749a2d4755dbc78128200d1 /package | |
parent | 75c3fa3cfc6da7721f81c96c43e7f020346f196a (diff) |
remove some unnecessary OUString::intern
Change-Id: Ia0f41dfc8a00c115ad544b8236d751e6b2dae5ab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117577
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'package')
-rw-r--r-- | package/source/zipapi/ZipFile.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/package/source/zipapi/ZipFile.cxx b/package/source/zipapi/ZipFile.cxx index fb90ef02e4e1..e0c07537b749 100644 --- a/package/source/zipapi/ZipFile.cxx +++ b/package/source/zipapi/ZipFile.cxx @@ -805,9 +805,9 @@ void ZipFile::readLOC( ZipEntry &rEntry ) if (nRead < aNameBuffer.getLength()) aNameBuffer.realloc(nRead); - OUString sLOCPath = OUString::intern( reinterpret_cast<char *>(aNameBuffer.getArray()), - aNameBuffer.getLength(), - RTL_TEXTENCODING_UTF8 ); + OUString sLOCPath( reinterpret_cast<char *>(aNameBuffer.getArray()), + aNameBuffer.getLength(), + RTL_TEXTENCODING_UTF8 ); if ( rEntry.nPathLen == -1 ) // the file was created { @@ -968,9 +968,9 @@ sal_Int32 ZipFile::readCEN() throw ZipException("name too long"); // read always in UTF8, some tools seem not to set UTF8 bit - aEntry.sPath = OUString::intern ( reinterpret_cast<char const *>(aMemGrabber.getCurrentPos()), - aEntry.nPathLen, - RTL_TEXTENCODING_UTF8 ); + aEntry.sPath = OUString( reinterpret_cast<char const *>(aMemGrabber.getCurrentPos()), + aEntry.nPathLen, + RTL_TEXTENCODING_UTF8 ); if ( !::comphelper::OStorageHelper::IsValidZipEntryFileName( aEntry.sPath, true ) ) throw ZipException("Zip entry has an invalid name." ); |