summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unoidx.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-03-05 13:44:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-03-06 06:47:06 +0100
commita2e3705d8b3b05ae664d54b762d6ff72927d5e48 (patch)
tree6ac31f9c9b419b12dbf065845a6941c143f57e2c /sw/source/core/unocore/unoidx.cxx
parentf423ac2d3bdba4263f1f41e31e7e2b7715afdd6e (diff)
loplugin:unnecessaryparen improve member expression
Change-Id: I304621018cb1e2a47e478e86df4229bcf2176741 Reviewed-on: https://gerrit.libreoffice.org/68757 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/unocore/unoidx.cxx')
-rw-r--r--sw/source/core/unocore/unoidx.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/unocore/unoidx.cxx b/sw/source/core/unocore/unoidx.cxx
index de2b67a7da37..445142d6af86 100644
--- a/sw/source/core/unocore/unoidx.cxx
+++ b/sw/source/core/unocore/unoidx.cxx
@@ -337,7 +337,7 @@ public:
, m_eTOXType(eType)
, m_bIsDescriptor(nullptr == pBaseSection)
, m_pDoc(&rDoc)
- , m_pProps((m_bIsDescriptor)
+ , m_pProps(m_bIsDescriptor
? new SwDocIndexDescriptorProperties_Impl(rDoc.GetTOXType(eType, 0))
: nullptr)
{
@@ -351,7 +351,7 @@ public:
SwTOXBase & GetTOXSectionOrThrow() const
{
SwSectionFormat *const pSectionFormat(GetSectionFormat());
- SwTOXBase *const pTOXSection( (m_bIsDescriptor)
+ SwTOXBase *const pTOXSection( m_bIsDescriptor
? &m_pProps->GetTOXBase()
: (pSectionFormat
? static_cast<SwTOXBaseSection*>(pSectionFormat->GetSection())
@@ -367,7 +367,7 @@ public:
sal_Int32 GetFormMax() const
{
SwTOXBase & rSection( GetTOXSectionOrThrow() );
- return (m_bIsDescriptor)
+ return m_bIsDescriptor
? SwForm::GetFormMaxLevel(m_eTOXType)
: rSection.GetTOXForm().GetFormMax();
}