diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-05-21 12:44:53 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-05-21 15:30:16 +0200 |
commit | 47169087c176a419cf4382e3bdb23b39df1575cd (patch) | |
tree | 6fbe2695501c492b6abeed251b2c1c177a31afee /vcl | |
parent | a1ec916df8b5b65c342c8a796150e5f29e5f2ae3 (diff) |
Remove unnecessary GZCodec derivation
Change-Id: Id710a1fe4a3c1593add69bb2a7014d26f9499e87
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/filter/graphicfilter.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/filter/graphicfilter.cxx b/vcl/source/filter/graphicfilter.cxx index 2144a5825762..2485d442aa99 100644 --- a/vcl/source/filter/graphicfilter.cxx +++ b/vcl/source/filter/graphicfilter.cxx @@ -655,9 +655,9 @@ static bool ImpPeekGraphicFormat( SvStream& rStream, OUString& rFormatExtension, // check if it is gzipped -> svgz if(sFirstBytes[0] == 0x1F && sFirstBytes[1] == 0x8B) { - GZCodec aCodec; + ZCodec aCodec; rStream.Seek(nStreamPos); - aCodec.BeginCompression(); + aCodec.BeginCompression(ZCODEC_DEFAULT_COMPRESSION, false, true); nDecompressedSize = aCodec.Read(rStream, sExtendedOrDecompressedFirstBytes, 2048); nCheckSize = nDecompressedSize < 256 ? nDecompressedSize : 256; aCodec.EndCompression(); @@ -1517,10 +1517,10 @@ sal_uInt16 GraphicFilter::ImportGraphic( Graphic& rGraphic, const OUString& rPat if(aTwoBytes[0] == 0x1F && aTwoBytes[1] == 0x8B) { SvMemoryStream aMemStream; - GZCodec aCodec; + ZCodec aCodec; long nMemoryLength; - aCodec.BeginCompression(); + aCodec.BeginCompression(ZCODEC_DEFAULT_COMPRESSION, false, true); nMemoryLength = aCodec.Decompress(rIStream, aMemStream); aCodec.EndCompression(); |