summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-04-02 23:00:47 +0200
committerJulien Nabet <serval2412@yahoo.fr>2013-04-02 23:01:14 +0200
commitef53a3a12e4f4aaf8ae33985bd22e89b08b8c03b (patch)
tree92977f2df016ab6c21b06f8ecbf721c5911a01f3 /sfx2/source
parent7dac241ca0dd0e8c53c246d8490e954d5b594862 (diff)
Some cppcheck cleaning
Change-Id: I993bd95b31f1090c747f01a899650e8873dcaada
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/doc/docfile.cxx4
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)
);