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

cppcheck: unreadVariable

Change-Id: I15f0320b646d20f0093c77286c1ff2715aacb8ce
üst f3f67b77
...@@ -1790,31 +1790,29 @@ bool SbModule::HasExeCode() ...@@ -1790,31 +1790,29 @@ bool SbModule::HasExeCode()
// Store only image, no source // Store only image, no source
void SbModule::StoreBinaryData( SvStream& rStrm, sal_uInt16 nVer ) void SbModule::StoreBinaryData( SvStream& rStrm, sal_uInt16 nVer )
{ {
bool bRet = Compile(); if (!Compile())
if( bRet ) return;
{ bool bFixup = ( !nVer && !pImage->ExceedsLegacyLimits() );// save in old image format, fix up method starts
bool bFixup = ( !nVer && !pImage->ExceedsLegacyLimits() );// save in old image format, fix up method starts
if ( bFixup ) // save in old image format, fix up method starts if ( bFixup ) // save in old image format, fix up method starts
fixUpMethodStart( true ); fixUpMethodStart( true );
bRet = SbxObject::StoreData( rStrm );
if( bRet )
{
(pImage->aOUSource).clear();
pImage->aComment = aComment;
pImage->aName = GetName();
rStrm.WriteUChar( 1 ); if (!SbxObject::StoreData(rStrm))
if ( nVer ) return;
bRet = pImage->Save( rStrm );
else
bRet = pImage->Save( rStrm, B_LEGACYVERSION );
if ( bFixup )
fixUpMethodStart( false ); // restore method starts
pImage->aOUSource = aOUSource; pImage->aOUSource.clear();
} pImage->aComment = aComment;
} pImage->aName = GetName();
rStrm.WriteUChar(1);
if (nVer)
pImage->Save(rStrm);
else
pImage->Save(rStrm, B_LEGACYVERSION);
if (bFixup)
fixUpMethodStart(false); // restore method starts
pImage->aOUSource = aOUSource;
} }
// Called for >= OO 1.0 passwd protected libraries only // Called for >= OO 1.0 passwd protected libraries only
......
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