summaryrefslogtreecommitdiff
path: root/embedserv
diff options
context:
space:
mode:
authorMuhammet Kara <muhammet.kara@pardus.org.tr>2017-11-06 19:29:07 +0000
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-11-07 07:38:07 +0100
commitca34d38983303d7649fc2d5804d3414fe47a4689 (patch)
tree44ebd0afd4fe12f85d859a37d9c8bf794177ba24 /embedserv
parentd0a4b17d58285ad616cf951d7e3b5fe89802c01d (diff)
Remove unnecessary state checks and the variables
Change-Id: I5dffeb9a05195085b6aa503421f65467d0b741a9 Reviewed-on: https://gerrit.libreoffice.org/44375 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'embedserv')
-rw-r--r--embedserv/source/embed/ed_ipersiststr.cxx8
1 files changed, 0 insertions, 8 deletions
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;
}