diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-28 14:43:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-29 11:12:47 +0200 |
commit | 3dfc17ed6334c619228668ffeff591bc75d32025 (patch) | |
tree | b2c985c9557151e120ddb10c4cc82bda4d7835ce /sfx2/source/doc/guisaveas.cxx | |
parent | f8e989c2384250d30f84651eb03673fb8d8dd096 (diff) |
loplugin:constantparam (3)
Change-Id: Ifc47bb8e096c9a8563021b2fcb44199577740746
Reviewed-on: https://gerrit.libreoffice.org/59747
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/doc/guisaveas.cxx')
-rw-r--r-- | sfx2/source/doc/guisaveas.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sfx2/source/doc/guisaveas.cxx b/sfx2/source/doc/guisaveas.cxx index f4427d0f2035..acab90b6cd4a 100644 --- a/sfx2/source/doc/guisaveas.cxx +++ b/sfx2/source/doc/guisaveas.cxx @@ -1654,7 +1654,7 @@ bool SfxStoringHelper::GUIStoreModel( const uno::Reference< frame::XModel >& xMo if ( nStoreMode & EXPORT_REQUESTED ) { - SfxStoringHelper::SetDocInfoState(aModel.GetModel(), xOldDocProps, true); + SfxStoringHelper::SetDocInfoState(aModel.GetModel(), xOldDocProps); } }; @@ -1728,8 +1728,7 @@ bool SfxStoringHelper::CheckFilterOptionsAppearance( // static void SfxStoringHelper::SetDocInfoState( const uno::Reference< frame::XModel >& xModel, - const uno::Reference< document::XDocumentProperties>& i_xOldDocProps, - bool bNoModify ) + const uno::Reference< document::XDocumentProperties>& i_xOldDocProps ) { uno::Reference<document::XDocumentPropertiesSupplier> const xModelDocPropsSupplier(xModel, uno::UNO_QUERY_THROW); @@ -1739,10 +1738,10 @@ void SfxStoringHelper::SetDocInfoState( i_xOldDocProps->getUserDefinedProperties(), uno::UNO_QUERY_THROW); uno::Reference< util::XModifiable > xModifiable( xModel, uno::UNO_QUERY ); - if ( bNoModify && !xModifiable.is() ) + if ( !xModifiable.is() ) throw uno::RuntimeException(); - bool bIsModified = bNoModify && xModifiable->isModified(); + bool bIsModified = xModifiable->isModified(); try { @@ -1799,7 +1798,7 @@ void SfxStoringHelper::SetDocInfoState( } // set the modified flag back if required - if ( (bNoModify && bIsModified) != bool(xModifiable->isModified()) ) + if ( bIsModified != bool(xModifiable->isModified()) ) xModifiable->setModified( bIsModified ); } |