diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-24 13:08:01 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-27 10:44:25 +0100 |
commit | 2e5508a17660401e1b4b489dbc9f70b978745b75 (patch) | |
tree | 881afcf9d8b9f0a653df0c94a8a2deefdf85670e /lotuswordpro | |
parent | 470682b3abf0622f5e9663d62d8641f63ceb6f30 (diff) |
loplugin:unnecessaryparen check for (f1()).f2
Change-Id: I93257b0ddd41c649875124d6d5c5faeaa431bae3
Reviewed-on: https://gerrit.libreoffice.org/45218
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwpbulletstylemgr.cxx | 4 | ||||
-rw-r--r-- | lotuswordpro/source/filter/lwpcelllayout.cxx | 4 | ||||
-rw-r--r-- | lotuswordpro/source/filter/lwpdrawobj.cxx | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/lotuswordpro/source/filter/lwpbulletstylemgr.cxx b/lotuswordpro/source/filter/lwpbulletstylemgr.cxx index 5d096cccd3ae..9692eedb7fa3 100644 --- a/lotuswordpro/source/filter/lwpbulletstylemgr.cxx +++ b/lotuswordpro/source/filter/lwpbulletstylemgr.cxx @@ -175,7 +175,7 @@ OUString LwpBulletStyleMgr::RegisterBulletStyle(LwpPara* pPara, LwpBulletOverrid } } - aStyleName = (pXFStyleMgr->AddStyle(pListStyle)).m_pStyle->GetStyleName(); + aStyleName = pXFStyleMgr->AddStyle(pListStyle).m_pStyle->GetStyleName(); } else { @@ -231,7 +231,7 @@ OUString LwpBulletStyleMgr::RegisterBulletStyle(LwpPara* pPara, LwpBulletOverrid pListStyle->SetListPosition(nPos, 0.0, 0.635, 0.0); } - aStyleName = (pXFStyleMgr->AddStyle(pListStyle)).m_pStyle->GetStyleName(); + aStyleName = pXFStyleMgr->AddStyle(pListStyle).m_pStyle->GetStyleName(); } else delete pListStyle; diff --git a/lotuswordpro/source/filter/lwpcelllayout.cxx b/lotuswordpro/source/filter/lwpcelllayout.cxx index 504ccb366b73..858f8ea22c0b 100644 --- a/lotuswordpro/source/filter/lwpcelllayout.cxx +++ b/lotuswordpro/source/filter/lwpcelllayout.cxx @@ -555,7 +555,7 @@ void LwpCellLayout::RegisterDefaultCell() } xCellStyle->SetBorders(pBorders); } - m_CellStyleNames[eLoop] = (pXFStyleManager->AddStyle(xCellStyle.release())).m_pStyle->GetStyleName(); + m_CellStyleNames[eLoop] = pXFStyleManager->AddStyle(xCellStyle.release()).m_pStyle->GetStyleName(); } } /** @@ -587,7 +587,7 @@ void LwpCellLayout::RegisterStyle() pCellStyle->SetAlignType(enumXFAlignNone, GetVerticalAlignmentType()); XFStyleManager* pXFStyleManager = LwpGlobalMgr::GetInstance()->GetXFStyleManager(); - m_StyleName = (pXFStyleManager->AddStyle(pCellStyle)).m_pStyle->GetStyleName(); + m_StyleName = pXFStyleManager->AddStyle(pCellStyle).m_pStyle->GetStyleName(); // content object register styles rtl::Reference<LwpObject> pObj = m_Content.obj(); diff --git a/lotuswordpro/source/filter/lwpdrawobj.cxx b/lotuswordpro/source/filter/lwpdrawobj.cxx index fe974a1c50f0..1494106fd966 100644 --- a/lotuswordpro/source/filter/lwpdrawobj.cxx +++ b/lotuswordpro/source/filter/lwpdrawobj.cxx @@ -446,7 +446,7 @@ OUString LwpDrawLine::RegisterStyle() SetArrowHead(pStyle, m_aLineRec.nLineEnd, m_aLineRec.nLineWidth); XFStyleManager* pXFStyleManager = LwpGlobalMgr::GetInstance()->GetXFStyleManager(); - return (pXFStyleManager->AddStyle(pStyle)).m_pStyle->GetStyleName(); + return pXFStyleManager->AddStyle(pStyle).m_pStyle->GetStyleName(); } |