Kaydet (Commit) ca34d389 authored tarafından Muhammet Kara's avatar Muhammet Kara Kaydeden (comit) Noel Grandin

Remove unnecessary state checks and the variables

Change-Id: I5dffeb9a05195085b6aa503421f65467d0b741a9
Reviewed-on: https://gerrit.libreoffice.org/44375Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst d0a4b17d
......@@ -705,20 +705,12 @@ STDMETHODIMP EmbedDocument_Impl::SaveCompleted( IStorage *pStgNew )
&m_pExtStream );
if ( FAILED( hr ) || !m_pExtStream ) return E_OUTOFMEMORY;
bool bModified = false;
uno::Reference< util::XModifiable > xMod( m_pDocHolder->GetDocument(), uno::UNO_QUERY );
if ( xMod.is() )
bModified = xMod->isModified();
for ( AdviseSinkHashMapIterator iAdvise = m_aAdviseHashMap.begin(); iAdvise != m_aAdviseHashMap.end(); iAdvise++ )
{
if ( iAdvise->second )
iAdvise->second->OnSave();
}
if ( xMod.is() )
bModified = xMod->isModified();
return S_OK;
}
......
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