[Libreoffice-commits] core.git: embedserv/source
Muhammet Kara
muhammet.kara at pardus.org.tr
Tue Nov 7 06:38:43 UTC 2017
embedserv/source/embed/ed_ipersiststr.cxx | 8 --------
1 file changed, 8 deletions(-)
New commits:
commit ca34d38983303d7649fc2d5804d3414fe47a4689
Author: Muhammet Kara <muhammet.kara at pardus.org.tr>
Date: Mon Nov 6 19:29:07 2017 +0000
Remove unnecessary state checks and the variables
Change-Id: I5dffeb9a05195085b6aa503421f65467d0b741a9
Reviewed-on: https://gerrit.libreoffice.org/44375
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/embedserv/source/embed/ed_ipersiststr.cxx b/embedserv/source/embed/ed_ipersiststr.cxx
index 3836d59b84d1..e60a6b102fed 100644
--- a/embedserv/source/embed/ed_ipersiststr.cxx
+++ b/embedserv/source/embed/ed_ipersiststr.cxx
@@ -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;
}
More information about the Libreoffice-commits
mailing list