diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-04-02 23:00:47 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-04-02 23:01:14 +0200 |
commit | ef53a3a12e4f4aaf8ae33985bd22e89b08b8c03b (patch) | |
tree | 92977f2df016ab6c21b06f8ecbf721c5911a01f3 /sfx2 | |
parent | 7dac241ca0dd0e8c53c246d8490e954d5b594862 (diff) |
Some cppcheck cleaning
Change-Id: I993bd95b31f1090c747f01a899650e8873dcaada
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/docfile.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx index 5afe39cbd9df..1f1525c46af8 100644 --- a/sfx2/source/doc/docfile.cxx +++ b/sfx2/source/doc/docfile.cxx @@ -3240,10 +3240,8 @@ sal_Bool SfxMedium::SaveVersionList_Impl( sal_Bool /*bUseXML*/ ) //---------------------------------------------------------------- sal_Bool SfxMedium::IsReadOnly() { - bool bReadOnly = false; - // a) ReadOnly filter cant produce read/write contents! - bReadOnly = ( + bool bReadOnly = ( (pImp->m_pFilter ) && ((pImp->m_pFilter->GetFilterFlags() & SFX_FILTER_OPENREADONLY) == SFX_FILTER_OPENREADONLY) ); |