From be756e2ca3e23c9ee60b7418a2339700966f14f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Fri, 9 May 2014 09:56:11 +0100 Subject: [PATCH] coverity#735545 Logically dead code Change-Id: Ifa1bc627da203575b36e7e944c66b945f813016d --- sw/source/core/uibase/uiview/viewmdi.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sw/source/core/uibase/uiview/viewmdi.cxx b/sw/source/core/uibase/uiview/viewmdi.cxx index 6181c5d5ad54..c681a8fe38b3 100644 --- a/sw/source/core/uibase/uiview/viewmdi.cxx +++ b/sw/source/core/uibase/uiview/viewmdi.cxx @@ -222,11 +222,9 @@ void SwView::SetViewLayout( sal_uInt16 nColumns, bool bBookMode, bool bViewOnly if ( nColumns != pUsrPref->GetViewLayoutColumns() || bBookMode != pUsrPref->IsViewLayoutBookMode() ) { - pUsrPref->SetViewLayoutColumns( nColumns ); - pUsrPref->SetViewLayoutBookMode( bBookMode ); - SW_MOD()->ApplyUsrPref( *pUsrPref, - bViewOnly ? this: 0, - bViewOnly ? VIEWOPT_DEST_VIEW_ONLY : 0 ); + pUsrPref->SetViewLayoutColumns(nColumns); + pUsrPref->SetViewLayoutBookMode(bBookMode); + SW_MOD()->ApplyUsrPref(*pUsrPref, 0, 0); pUsrPref->SetModified(); } }