diff options
author | Noel Grandin <noel@peralex.com> | 2014-04-22 14:14:14 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-04-23 11:11:50 +0200 |
commit | 2692047aacef7b4288f995ce6ff2db5e16b71014 (patch) | |
tree | 2d43552ad1a01cfb6287d54f35b5ae3ca538393b /lotuswordpro/source/filter/lwpdoc.cxx | |
parent | ca56379f27c53d4fa015d7adbb9494186f506de6 (diff) |
lotuswordpro: sal_Bool->bool
Change-Id: I017d284a2fbc8d50a9928c9d934ffe710b0c652f
Diffstat (limited to 'lotuswordpro/source/filter/lwpdoc.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwpdoc.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lotuswordpro/source/filter/lwpdoc.cxx b/lotuswordpro/source/filter/lwpdoc.cxx index bca8886c50db..32967258c9a5 100644 --- a/lotuswordpro/source/filter/lwpdoc.cxx +++ b/lotuswordpro/source/filter/lwpdoc.cxx @@ -170,16 +170,16 @@ void LwpDocument::Parse(IXFStream* pOutputStream) } } -sal_Bool LwpDocument::IsSkippedDivision() +bool LwpDocument::IsSkippedDivision() { OUString sDivName; - sal_uInt8 ret = sal_False; + bool ret = false; LwpDivInfo* pDiv = dynamic_cast<LwpDivInfo*>(GetDivInfoID()->obj(VO_DIVISIONINFO)); if (pDiv == NULL) - return sal_True; + return true; sDivName = pDiv->GetDivName(); if (!sDivName.isEmpty() && !pDiv->IsGotoable()) //including toa,scripts division - return sal_True; + return true; //skip endnote division OUString strClassName = pDiv->GetClassName(); if ((strClassName == STR_DivisionEndnote) @@ -197,7 +197,7 @@ sal_Bool LwpDocument::IsSkippedDivision() LwpObjectID* pFirst = pStory->GetFirstPara(); LwpObjectID* pLast = pStory->GetLastPara(); if(*pFirst == *pLast) - ret = sal_True; + ret = true; } } } @@ -664,10 +664,10 @@ LwpDocument* LwpDocument::GetPreviousDivision() /** * @descr Get the numbers of page before pEndDivision, copy from lwp source code */ - sal_Bool LwpDocument::GetNumberOfPages(LwpDocument* pEndDivision, sal_uInt16& nCount) +bool LwpDocument::GetNumberOfPages(LwpDocument* pEndDivision, sal_uInt16& nCount) { if(this == pEndDivision) - return sal_True; + return true; LwpDivInfo* pDivInfo = dynamic_cast<LwpDivInfo*>(m_DivInfo.obj()); if(pDivInfo) @@ -679,11 +679,11 @@ LwpDocument* LwpDocument::GetPreviousDivision() while(pDivision) { if(pDivision->GetNumberOfPages(pEndDivision,nCount)) - return sal_True; + return true; pDivision = pDivision->GetNextDivision(); } - return sal_False; + return false; } /** * @descr Get the numbers of page before curruent division |