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 | |
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')
-rw-r--r-- | sfx2/source/appl/appopen.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/doc/guisaveas.cxx | 11 |
2 files changed, 6 insertions, 7 deletions
diff --git a/sfx2/source/appl/appopen.cxx b/sfx2/source/appl/appopen.cxx index ad839b0ccb24..632a2f985268 100644 --- a/sfx2/source/appl/appopen.cxx +++ b/sfx2/source/appl/appopen.cxx @@ -686,7 +686,7 @@ void SfxApplication::OpenDocExec_Impl( SfxRequest& rReq ) // define rules for this handler css::uno::Type aInteraction = ::cppu::UnoType<css::task::ErrorCodeRequest>::get(); - ::sfx2::PreventDuplicateInteraction::InteractionInfo aRule (aInteraction, 1); + ::sfx2::PreventDuplicateInteraction::InteractionInfo aRule(aInteraction); pHandler->addInteractionRule(aRule); if (!aDocService.isEmpty()) 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 ); } |