[Libreoffice-commits] .: filter/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Jan 21 15:54:58 PST 2013
filter/source/graphicfilter/eps/eps.cxx | 19 +++++++------------
1 file changed, 7 insertions(+), 12 deletions(-)
New commits:
commit 80d77c22665b3b69b40f5f20b56923e453bc15cc
Author: Marcos Paulo de Souza <marcos.souza.org at gmail.com>
Date: Sat Jan 19 17:37:28 2013 -0200
Remove some unneeded variables in filter
Change-Id: Ia2963498a197a795155a42b2588f983019d89f35
Reviewed-on: https://gerrit.libreoffice.org/1773
Reviewed-by: Olivier Hallot <olivier.hallot at alta.org.br>
Tested-by: Olivier Hallot <olivier.hallot at alta.org.br>
diff --git a/filter/source/graphicfilter/eps/eps.cxx b/filter/source/graphicfilter/eps/eps.cxx
index 9405328..58c56f5 100644
--- a/filter/source/graphicfilter/eps/eps.cxx
+++ b/filter/source/graphicfilter/eps/eps.cxx
@@ -298,26 +298,21 @@ sal_Bool PSWriter::WritePS( const Graphic& rGraphic, SvStream& rTargetStream, Fi
if( pResMgr )
{
- String aPreviewStr( "Preview" );
- String aVersionStr( "Version" );
- String aColorStr( "ColorFormat" );
- String aComprStr( "CompressionMode" );
#ifdef UNX // don't put binary tiff preview ahead of postscript code by default on unix as ghostscript is unable to read it
- mnPreview = pFilterConfigItem->ReadInt32( aPreviewStr, 0 );
+ mnPreview = pFilterConfigItem->ReadInt32( "Preview", 0 );
#else
- mnPreview = pFilterConfigItem->ReadInt32( aPreviewStr, 1 );
+ mnPreview = pFilterConfigItem->ReadInt32( "Preview", 1 );
#endif
- mnLevel = pFilterConfigItem->ReadInt32( aVersionStr, 2 );
+ mnLevel = pFilterConfigItem->ReadInt32( "Version", 2 );
if ( mnLevel != 1 )
mnLevel = 2;
- mbGrayScale = pFilterConfigItem->ReadInt32( aColorStr, 1 ) == 2;
+ mbGrayScale = pFilterConfigItem->ReadInt32( "ColorFormat", 1 ) == 2;
#ifdef UNX // don't compress by default on unix as ghostscript is unable to read LZW compressed eps
- mbCompression = pFilterConfigItem->ReadInt32( aComprStr, 0 ) != 0;
+ mbCompression = pFilterConfigItem->ReadInt32( "CompressionMode", 0 ) != 0;
#else
- mbCompression = pFilterConfigItem->ReadInt32( aComprStr, 1 ) == 1;
+ mbCompression = pFilterConfigItem->ReadInt32( "CompressionMode", 1 ) == 1;
#endif
- String sTextMode( "TextMode" );
- mnTextMode = pFilterConfigItem->ReadInt32( sTextMode, 0 );
+ mnTextMode = pFilterConfigItem->ReadInt32( "TextMode", 0 );
if ( mnTextMode > 2 )
mnTextMode = 0;
delete pResMgr;
More information about the Libreoffice-commits
mailing list