diff options
Diffstat (limited to 'sw/source/uibase/fldui/fldwrap.cxx')
-rw-r--r-- | sw/source/uibase/fldui/fldwrap.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sw/source/uibase/fldui/fldwrap.cxx b/sw/source/uibase/fldui/fldwrap.cxx index 38b45e577fa5..9380d20924c5 100644 --- a/sw/source/uibase/fldui/fldwrap.cxx +++ b/sw/source/uibase/fldui/fldwrap.cxx @@ -91,9 +91,8 @@ SwFieldDlgWrapper::SwFieldDlgWrapper( vcl::Window* _pParent, sal_uInt16 nId, // newly initialise dialog after Doc switch bool SwFieldDlgWrapper::ReInitDlg(SwDocShell *pDocSh) { - bool bRet; - - if ((bRet = SwChildWinWrapper::ReInitDlg(pDocSh))) // update immediately, Doc switch + bool bRet = SwChildWinWrapper::ReInitDlg(pDocSh); + if (bRet) // update immediately, Doc switch { pDlgInterface->ReInitDlg(); } @@ -138,8 +137,8 @@ SwFieldDataOnlyDlgWrapper::SwFieldDataOnlyDlgWrapper( vcl::Window* _pParent, sal // re-init after doc activation bool SwFieldDataOnlyDlgWrapper::ReInitDlg(SwDocShell *pDocSh) { - bool bRet; - if ((bRet = SwChildWinWrapper::ReInitDlg(pDocSh))) // update immediately, Doc switch + bool bRet = SwChildWinWrapper::ReInitDlg(pDocSh); + if (bRet) // update immediately, Doc switch { pDlgInterface->ReInitDlg(); } |