diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-12 15:10:21 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-08-14 11:11:14 +0200 |
commit | 1656a7ff431df8e1d65698953051086fbf90a266 (patch) | |
tree | 9e9fb9994d046f36ada637f5e600bd83fbbb84bd /lotuswordpro/source | |
parent | 9e1d98fec2884e4c401aa0d5396612aa01773dc8 (diff) |
loplugin: defaultparams
Change-Id: Iabcea466cb23e7a7a432f953cc03aaa1c2dc1d65
Diffstat (limited to 'lotuswordpro/source')
-rw-r--r-- | lotuswordpro/source/filter/lwpbulletstylemgr.cxx | 2 | ||||
-rw-r--r-- | lotuswordpro/source/filter/lwpdrawobj.cxx | 6 | ||||
-rw-r--r-- | lotuswordpro/source/filter/lwpframelayout.cxx | 2 | ||||
-rw-r--r-- | lotuswordpro/source/filter/lwpfribmark.cxx | 2 | ||||
-rw-r--r-- | lotuswordpro/source/filter/lwplnopts.cxx | 4 | ||||
-rw-r--r-- | lotuswordpro/source/filter/lwpmarker.cxx | 8 | ||||
-rw-r--r-- | lotuswordpro/source/filter/lwptools.cxx | 4 |
7 files changed, 14 insertions, 14 deletions
diff --git a/lotuswordpro/source/filter/lwpbulletstylemgr.cxx b/lotuswordpro/source/filter/lwpbulletstylemgr.cxx index 0854ad1532b7..2c7a86e7e7ec 100644 --- a/lotuswordpro/source/filter/lwpbulletstylemgr.cxx +++ b/lotuswordpro/source/filter/lwpbulletstylemgr.cxx @@ -297,7 +297,7 @@ XFContentContainer* LwpBulletStyleMgr::AddBulletList( if ((nC == nLevel-1) && bIsBulletSkiped) { - theItem->SetIsHeader(true); + theItem->SetIsHeader(); theList->SetContinueNumber(true); } diff --git a/lotuswordpro/source/filter/lwpdrawobj.cxx b/lotuswordpro/source/filter/lwpdrawobj.cxx index 9a605b65b0f4..2fb00d2baf6d 100644 --- a/lotuswordpro/source/filter/lwpdrawobj.cxx +++ b/lotuswordpro/source/filter/lwpdrawobj.cxx @@ -716,7 +716,7 @@ XFFrame* LwpDrawRectangle::CreateDrawObj(const OUString& rStyleName) } pRect->LineTo(XFPoint((double)m_aVector[0].x/TWIPS_PER_CM * m_pTransData->fScaleX, (double)m_aVector[0].y/TWIPS_PER_CM * m_pTransData->fScaleY)); - pRect->ClosePath(true); + pRect->ClosePath(); this->SetPosition(pRect); pRect->SetStyleName(rStyleName); @@ -760,7 +760,7 @@ XFFrame* LwpDrawRectangle::CreateRoundedRect(const OUString& rStyleName) pRoundedRect->LineTo(XFPoint((double)m_aVector[0].x/TWIPS_PER_CM * m_pTransData->fScaleX, (double)m_aVector[0].y/TWIPS_PER_CM * m_pTransData->fScaleY)); - pRoundedRect->ClosePath(true); + pRoundedRect->ClosePath(); this->SetPosition(pRoundedRect); pRoundedRect->SetStyleName(rStyleName); @@ -877,7 +877,7 @@ XFFrame* LwpDrawEllipse::CreateDrawObj(const OUString& rStyleName ) pEllipse->CurveTo(aDest, aCtrl1, aCtrl2); } - pEllipse->ClosePath(true); + pEllipse->ClosePath(); this->SetPosition(pEllipse); pEllipse->SetStyleName(rStyleName); diff --git a/lotuswordpro/source/filter/lwpframelayout.cxx b/lotuswordpro/source/filter/lwpframelayout.cxx index 4eec2c7db899..bf72f621d088 100644 --- a/lotuswordpro/source/filter/lwpframelayout.cxx +++ b/lotuswordpro/source/filter/lwpframelayout.cxx @@ -222,7 +222,7 @@ void LwpFrame::RegisterStyle(XFFrameStyle* pFrameStyle) nFirst++; if(nFirst <= nLast) { - m_pLayout->XFConvertFrame(pCont, nFirst, nLast, false); + m_pLayout->XFConvertFrame(pCont, nFirst, nLast); } } } diff --git a/lotuswordpro/source/filter/lwpfribmark.cxx b/lotuswordpro/source/filter/lwpfribmark.cxx index a5d5d136f942..cbdb20d3107a 100644 --- a/lotuswordpro/source/filter/lwpfribmark.cxx +++ b/lotuswordpro/source/filter/lwpfribmark.cxx @@ -378,7 +378,7 @@ void LwpFribField::RegisterTimeField(LwpFieldMark* pFieldMark) sal_Int32 index; sal_Unicode ch1(0x0020);//space OUString tag; - index = sFormula.indexOf(ch1,0); + index = sFormula.indexOf(ch1); if (index < 0) return; diff --git a/lotuswordpro/source/filter/lwplnopts.cxx b/lotuswordpro/source/filter/lwplnopts.cxx index b8f5a75a528c..d177951747bf 100644 --- a/lotuswordpro/source/filter/lwplnopts.cxx +++ b/lotuswordpro/source/filter/lwplnopts.cxx @@ -84,11 +84,11 @@ void LwpLineNumberOptions::RegisterStyle() pLineNumber->SetNumberOffset(LwpTools::ConvertFromUnitsToMetric(m_nDistance)); pLineNumber->SetNumberIncrement(m_nSeparator); if (m_nFlags & LN_RESETEACHPAGE) - pLineNumber->SetRestartOnPage(true); + pLineNumber->SetRestartOnPage(); else pLineNumber->SetRestartOnPage(false); if (m_nFlags & LN_COUNTBLANKLINES) - pLineNumber->SetCountEmptyLines(true); + pLineNumber->SetCountEmptyLines(); else pLineNumber->SetCountEmptyLines(false); diff --git a/lotuswordpro/source/filter/lwpmarker.cxx b/lotuswordpro/source/filter/lwpmarker.cxx index cfc82dc13c8e..e04d5ec40b82 100644 --- a/lotuswordpro/source/filter/lwpmarker.cxx +++ b/lotuswordpro/source/filter/lwpmarker.cxx @@ -380,7 +380,7 @@ void LwpFieldMark::ParseIndex(OUString& sKey1,OUString& sKey2) OUString sFormula = m_Formula.str(); sal_Int32 index[4]; sal_Unicode ch(0x0022);//" - index[0] = sFormula.indexOf(ch,0); + index[0] = sFormula.indexOf(ch); index[1] = sFormula.indexOf(ch,index[0]+1); index[2] = sFormula.indexOf(ch,index[1]+1); @@ -402,7 +402,7 @@ void LwpFieldMark::ParseTOC(OUString& sLevel,OUString& sText) sal_Unicode ch1(0x0020);//space sal_Unicode ch2(0x0022);//" - index[0] = sFormula.indexOf(ch1,0); + index[0] = sFormula.indexOf(ch1); index[1] = sFormula.indexOf(ch1,index[0]+1); index[2] = sFormula.indexOf(ch2,index[1]+1); @@ -431,7 +431,7 @@ bool LwpFieldMark::IsDateTimeField(sal_uInt8& type,OUString& formula) sal_Unicode ch1(0x0020);//space OUString tag; - index = sFormula.indexOf(ch1,0); + index = sFormula.indexOf(ch1); if (index < 0) { if (sFormula == "TotalEditingTime") @@ -478,7 +478,7 @@ bool LwpFieldMark::IsCrossRefField(sal_uInt8& nType, OUString& sMarkName) sal_Unicode ch1(0x0020);//space OUString tag; - index = sFormula.indexOf(ch1,0); + index = sFormula.indexOf(ch1); if (index < 0) { LwpGlobalMgr* pGlobal = LwpGlobalMgr::GetInstance(); diff --git a/lotuswordpro/source/filter/lwptools.cxx b/lotuswordpro/source/filter/lwptools.cxx index acb6b3189ce4..48385216d9ea 100644 --- a/lotuswordpro/source/filter/lwptools.cxx +++ b/lotuswordpro/source/filter/lwptools.cxx @@ -325,9 +325,9 @@ XFDateStyle* LwpTools::GetSystemDateStyle(bool bLongFormat) } } if (j==1) - pDateStyle->AddMonth(false,false); + pDateStyle->AddMonth(false); else if (j==2) - pDateStyle->AddMonth(true,false); + pDateStyle->AddMonth(true); else if (j==3) pDateStyle->AddMonth(false,true); else |