diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-02-15 20:50:49 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-02-16 23:31:25 +0000 |
commit | 0f5efe880ad96accf33f2fd8131d7e35e077f0c1 (patch) | |
tree | 1d88ac300f501e121c8ed0c359cbb44a4a5591e2 /filter/source | |
parent | aa323d811065b07fab65801474411119fddc77cd (diff) |
coverity#707515: Uninitialized scalar variable
Change-Id: Iacac2777a6c3d2d8dc91ade029d3a1913f7da2e7
Diffstat (limited to 'filter/source')
-rw-r--r-- | filter/source/graphicfilter/eras/eras.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/filter/source/graphicfilter/eras/eras.cxx b/filter/source/graphicfilter/eras/eras.cxx index 17f7f51dfa78..eb18c689c76a 100644 --- a/filter/source/graphicfilter/eras/eras.cxx +++ b/filter/source/graphicfilter/eras/eras.cxx @@ -30,7 +30,6 @@ class RASWriter { private: SvStream & m_rOStm; - sal_uInt16 mpOStmOldModus; sal_Bool mbStatus; BitmapReadAccess* mpAcc; @@ -110,7 +109,7 @@ sal_Bool RASWriter::WriteRAS( const Graphic& rGraphic, FilterConfigItem* pFilter mpAcc = aBmp.AcquireReadAccess(); if ( mpAcc ) { - mpOStmOldModus = m_rOStm.GetNumberFormatInt(); + sal_uInt16 nOStmOldModus = m_rOStm.GetNumberFormatInt(); m_rOStm.SetNumberFormatInt( NUMBERFORMAT_INT_BIGENDIAN ); if ( ImplWriteHeader() ) @@ -119,13 +118,14 @@ sal_Bool RASWriter::WriteRAS( const Graphic& rGraphic, FilterConfigItem* pFilter ImplWritePalette(); ImplWriteBody(); } + + m_rOStm.SetNumberFormatInt( nOStmOldModus ); + aBmp.ReleaseAccess( mpAcc ); } else mbStatus = sal_False; - m_rOStm.SetNumberFormatInt( mpOStmOldModus ); - if ( xStatusIndicator.is() ) xStatusIndicator->end(); |