diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2013-01-19 17:37:28 -0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@alta.org.br> | 2013-01-21 23:54:39 +0000 |
commit | 80d77c22665b3b69b40f5f20b56923e453bc15cc (patch) | |
tree | 2a56a82cc608f51d3f64eab37e037180c9e68f7d /filter/source | |
parent | c870545523a84c10a0f8ca909bb696fab2869ab6 (diff) |
Remove some unneeded variables in filter
Change-Id: Ia2963498a197a795155a42b2588f983019d89f35
Reviewed-on: https://gerrit.libreoffice.org/1773
Reviewed-by: Olivier Hallot <olivier.hallot@alta.org.br>
Tested-by: Olivier Hallot <olivier.hallot@alta.org.br>
Diffstat (limited to 'filter/source')
-rw-r--r-- | filter/source/graphicfilter/eps/eps.cxx | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/filter/source/graphicfilter/eps/eps.cxx b/filter/source/graphicfilter/eps/eps.cxx index 9405328dd688..58c56f526c0e 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; |