summaryrefslogtreecommitdiff
path: root/sw/source/ui
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui')
-rw-r--r--sw/source/ui/fldui/flddinf.cxx2
-rw-r--r--sw/source/ui/fldui/fldvar.cxx2
-rw-r--r--sw/source/ui/table/tabledlg.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/ui/fldui/flddinf.cxx b/sw/source/ui/fldui/flddinf.cxx
index 592a46c5ec89..92024ab1a727 100644
--- a/sw/source/ui/fldui/flddinf.cxx
+++ b/sw/source/ui/fldui/flddinf.cxx
@@ -81,7 +81,7 @@ SwFieldDokInfPage::SwFieldDokInfPage(vcl::Window* pParent, const SfxItemSet *con
//enable 'active' language selection
m_pFormatLB->SetShowLanguageControl(true);
- const SfxUnoAnyItem* pItem = (pCoreSet)
+ const SfxUnoAnyItem* pItem = pCoreSet
? pCoreSet->GetItem<SfxUnoAnyItem>(SID_DOCINFO, false)
: nullptr;
if ( pItem )
diff --git a/sw/source/ui/fldui/fldvar.cxx b/sw/source/ui/fldui/fldvar.cxx
index 6c77133554bf..46fd6eb88802 100644
--- a/sw/source/ui/fldui/fldvar.cxx
+++ b/sw/source/ui/fldui/fldvar.cxx
@@ -1183,7 +1183,7 @@ bool SwFieldVarPage::FillItemSet(SfxItemSet* )
case TYP_INPUTFLD:
{
SwFieldType* pType = GetFieldMgr().GetFieldType(SwFieldIds::User, aName);
- nSubType = static_cast< sal_uInt16 >((nSubType & 0xff00) | ((pType) ? INP_USR : INP_VAR));
+ nSubType = static_cast< sal_uInt16 >((nSubType & 0xff00) | (pType ? INP_USR : INP_VAR));
break;
}
diff --git a/sw/source/ui/table/tabledlg.cxx b/sw/source/ui/table/tabledlg.cxx
index 64270c3248a2..0b20824c2342 100644
--- a/sw/source/ui/table/tabledlg.cxx
+++ b/sw/source/ui/table/tabledlg.cxx
@@ -1355,7 +1355,7 @@ bool SwTextFlowPage::FillItemSet( SfxItemSet* rSet )
sal_uInt16 nPgNum = static_cast< sal_uInt16 >(m_pPageNoNF->GetValue());
bool const usePageNo(bState && m_pPageNoCB->IsChecked());
boost::optional<sal_uInt16> const oPageNum(
- (usePageNo) ? nPgNum : boost::optional<sal_Int16>());
+ usePageNo ? nPgNum : boost::optional<sal_Int16>());
if (!pDesc || !pDesc->GetPageDesc()
|| (pDesc->GetPageDesc()->GetName() != sPage)
|| (pDesc->GetNumOffset() != oPageNum))