Kaydet (Commit) aa323d81 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#707516: Uninitialized scalar variable

Change-Id: I4be71f8dca0f2b2a7dfd59c5bcc3ef068f389846
üst ff2206ca
......@@ -29,7 +29,6 @@ class XPMWriter {
private:
SvStream& m_rOStm; // Die auszugebende XPM-Datei
sal_uInt16 mpOStmOldModus;
sal_Bool mbStatus;
sal_Bool mbTrans;
......@@ -117,22 +116,24 @@ sal_Bool XPMWriter::WriteXPM( const Graphic& rGraphic, FilterConfigItem* pFilter
mpAcc = aBmp.AcquireReadAccess();
if ( mpAcc )
{
mnColors = mpAcc->GetPaletteEntryCount();
mpOStmOldModus = m_rOStm.GetNumberFormatInt();
sal_uInt16 nOStmOldModus = m_rOStm.GetNumberFormatInt();
m_rOStm.SetNumberFormatInt( NUMBERFORMAT_INT_BIGENDIAN );
mnColors = mpAcc->GetPaletteEntryCount();
if ( ImplWriteHeader() )
{
ImplWritePalette();
ImplWriteBody();
m_rOStm << "\x22XPMENDEXT\x22\x0a};";
}
m_rOStm.SetNumberFormatInt(nOStmOldModus);
aBmp.ReleaseAccess( mpAcc );
}
else
mbStatus = sal_False;
m_rOStm.SetNumberFormatInt( mpOStmOldModus );
if ( xStatusIndicator.is() )
xStatusIndicator->end();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment