diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-24 12:33:56 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-24 12:36:29 +0200 |
commit | 746a717ed4648cd6c0d0d810a90a6539373b130c (patch) | |
tree | a1a2b3a3df4f968ccc98423a5b163d4b366b4c16 /sw/source/core/unocore/unoportenum.cxx | |
parent | 24df2bd5cb68f8de5e22a27f6a3505d099bc3581 (diff) |
loplugin:simplifybool
Change-Id: Ic90d247e6c8e36e27ff444ace10fd37e06d46b50
Diffstat (limited to 'sw/source/core/unocore/unoportenum.cxx')
-rw-r--r-- | sw/source/core/unocore/unoportenum.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/unocore/unoportenum.cxx b/sw/source/core/unocore/unoportenum.cxx index 80c1abde888c..9e292197fd35 100644 --- a/sw/source/core/unocore/unoportenum.cxx +++ b/sw/source/core/unocore/unoportenum.cxx @@ -536,7 +536,7 @@ lcl_CreateRefMarkPortion( { pPortion = new SwXTextPortion(pUnoCrsr, xParent, PORTION_REFMARK_START); pPortion->SetRefMark(xContent); - pPortion->SetCollapsed(rAttr.End() ? false : true); + pPortion->SetCollapsed(rAttr.End() == nullptr); } else { @@ -556,7 +556,7 @@ lcl_InsertRubyPortion( SwXTextPortion* pPortion = new SwXTextPortion(pUnoCrsr, static_txtattr_cast<const SwTxtRuby&>(rAttr), xParent, bEnd); rPortions.push_back(pPortion); - pPortion->SetCollapsed(rAttr.End() ? false : true); + pPortion->SetCollapsed(rAttr.End() == nullptr); } static Reference<XTextRange> @@ -577,7 +577,7 @@ lcl_CreateTOXMarkPortion( { pPortion = new SwXTextPortion(pUnoCrsr, xParent, PORTION_TOXMARK_START); pPortion->SetTOXMark(xContent); - pPortion->SetCollapsed(rAttr.GetEnd() ? false : true); + pPortion->SetCollapsed(rAttr.GetEnd() == nullptr); } else { |