summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2013-03-03 00:44:38 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2013-03-03 10:31:48 +0900
commitddf1b13a52548a62f6bebd5d97b7b822d2075529 (patch)
tree31ce91a27e3e745d4c82346b5e68ecc44526e056 /sw
parent19a080540f68abd8800b15b140349b1318d33073 (diff)
sal_Bool to bool
Change-Id: I4040baa1a0202426df80a0ea94abde55e2b6ca65
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/crsr/crstrvl.cxx2
-rw-r--r--sw/source/core/crsr/findattr.cxx8
-rw-r--r--sw/source/core/crsr/pam.cxx2
-rw-r--r--sw/source/core/crsr/swcrsr.cxx2
-rw-r--r--sw/source/core/doc/docedt.cxx2
-rw-r--r--sw/source/core/doc/docfld.cxx4
-rw-r--r--sw/source/core/doc/docfmt.cxx4
-rw-r--r--sw/source/core/doc/docredln.cxx2
-rw-r--r--sw/source/core/docnode/ndcopy.cxx4
-rw-r--r--sw/source/core/docnode/ndsect.cxx2
-rw-r--r--sw/source/core/fields/cellfml.cxx6
-rw-r--r--sw/source/core/fields/chpfld.cxx2
-rw-r--r--sw/source/core/layout/frmtool.cxx2
-rw-r--r--sw/source/core/layout/trvlfrm.cxx4
-rw-r--r--sw/source/core/text/frmcrsr.cxx4
-rw-r--r--sw/source/core/text/itrcrsr.cxx2
-rw-r--r--sw/source/filter/basflt/shellio.cxx2
-rw-r--r--sw/source/filter/html/htmlnum.cxx2
-rw-r--r--sw/source/ui/app/apphdl.cxx4
-rw-r--r--sw/source/ui/app/docsh2.cxx2
-rw-r--r--sw/source/ui/app/docshini.cxx2
-rw-r--r--sw/source/ui/app/docstyle.cxx2
-rw-r--r--sw/source/ui/chrdlg/drpcps.cxx6
-rw-r--r--sw/source/ui/config/uinums.cxx2
-rw-r--r--sw/source/ui/dbui/dbinsdlg.cxx2
-rw-r--r--sw/source/ui/dochdl/swdtflvr.cxx2
-rw-r--r--sw/source/ui/lingu/hhcwrp.cxx2
-rw-r--r--sw/source/ui/utlui/attrdesc.cxx2
28 files changed, 41 insertions, 41 deletions
diff --git a/sw/source/core/crsr/crstrvl.cxx b/sw/source/core/crsr/crstrvl.cxx
index 8700c2fa8c85..97474237299e 100644
--- a/sw/source/core/crsr/crstrvl.cxx
+++ b/sw/source/core/crsr/crstrvl.cxx
@@ -1463,7 +1463,7 @@ sal_Bool SwCrsrShell::GetContentAtPos( const Point& rPt,
String sAttrs;
SfxItemIter aIter( aSet );
const SfxPoolItem* pItem = aIter.FirstItem();
- while( sal_True )
+ while( true )
{
if( !IsInvalidItem( pItem ))
{
diff --git a/sw/source/core/crsr/findattr.cxx b/sw/source/core/crsr/findattr.cxx
index a14c9282afac..3a9a7919d584 100644
--- a/sw/source/core/crsr/findattr.cxx
+++ b/sw/source/core/crsr/findattr.cxx
@@ -260,7 +260,7 @@ void SwAttrCheckArr::SetNewSet( const SwTxtNode& rTxtNd, const SwPaM& rPam )
const SfxPoolItem* pFndItem;
sal_uInt16 nWhich;
- while( sal_True )
+ while( true )
{
if( IsInvalidItem( pItem ) )
{
@@ -830,7 +830,7 @@ static int lcl_Search( const SwCntntNode& rCNd, const SfxItemSet& rCmpSet, sal_B
const SfxPoolItem* pNdItem;
sal_uInt16 nWhich;
- while( sal_True )
+ while( true )
{
if( IsInvalidItem( pItem ))
{
@@ -1072,7 +1072,7 @@ int SwFindParaAttr::Find( SwPaM* pCrsr, SwMoveFn fnMove, const SwPaM* pRegion,
SwPaM* pTextRegion = &aRegion;
SwPaM aSrchPam( *pCrsr->GetPoint() );
- while( sal_True )
+ while( true )
{
if( pSet->Count() ) // any attributes?
{
@@ -1172,7 +1172,7 @@ int SwFindParaAttr::Find( SwPaM* pCrsr, SwMoveFn fnMove, const SwPaM* pRegion,
SfxItemIter aIter( *pSet );
const SfxPoolItem* pItem = aIter.GetCurItem();
- while( sal_True )
+ while( true )
{
// reset all that are not set with pool defaults
if( !IsInvalidItem( pItem ) && SFX_ITEM_SET !=
diff --git a/sw/source/core/crsr/pam.cxx b/sw/source/core/crsr/pam.cxx
index c4bf33c9a132..182521df99fc 100644
--- a/sw/source/core/crsr/pam.cxx
+++ b/sw/source/core/crsr/pam.cxx
@@ -792,7 +792,7 @@ SwCntntNode* GetNode( SwPaM & rPam, sal_Bool& rbFirst, SwMoveFn fnMove,
SwNodes& rNodes = aPos.nNode.GetNodes();
// go to next/previous CntntNode
- while( sal_True )
+ while( true )
{
pNd = bSrchForward
? rNodes.GoNextSection( &aPos.nNode, sal_True, !bInReadOnly )
diff --git a/sw/source/core/crsr/swcrsr.cxx b/sw/source/core/crsr/swcrsr.cxx
index 8bb731a45a6a..0ee9974d0365 100644
--- a/sw/source/core/crsr/swcrsr.cxx
+++ b/sw/source/core/crsr/swcrsr.cxx
@@ -472,7 +472,7 @@ sal_Bool SwCursor::IsSelOvr( int eFlags )
? ( !pMyNd->IsEndNode() || 0 == ( pPtNd = pMyNd->FindTableNode() ))
: 0 == ( pPtNd = pMyNd->GetTableNode() ))
break;
- } while( sal_True );
+ } while( true );
}
// stay on old position
diff --git a/sw/source/core/doc/docedt.cxx b/sw/source/core/doc/docedt.cxx
index 04274fce654f..67252d931e8b 100644
--- a/sw/source/core/doc/docedt.cxx
+++ b/sw/source/core/doc/docedt.cxx
@@ -1766,7 +1766,7 @@ bool SwDoc::DeleteRangeImplImpl(SwPaM & rPam)
*pEnd = *pStt;
rPam.DeleteMark();
- } while( sal_False );
+ } while( false );
if( !IsIgnoreRedline() && !GetRedlineTbl().empty() )
CompressRedlines();
diff --git a/sw/source/core/doc/docfld.cxx b/sw/source/core/doc/docfld.cxx
index fb8022bb7edc..8c0169502842 100644
--- a/sw/source/core/doc/docfld.cxx
+++ b/sw/source/core/doc/docfld.cxx
@@ -182,7 +182,7 @@ void SwDoc::InsDeletedFldType( SwFieldType& rFldTyp )
break; // exit while loop
}
++nNum;
- } while( sal_True );
+ } while( true );
break;
}
@@ -2473,7 +2473,7 @@ void SwDocUpdtFld::GetBodyNode( const SwSectionNode& rSectNd )
(void) bResult; // unused in non-debug
pNew = new _SetGetExpFld( rSectNd, &aPos );
- } while( sal_False );
+ } while( false );
}
if( !pNew )
diff --git a/sw/source/core/doc/docfmt.cxx b/sw/source/core/doc/docfmt.cxx
index c35b6fee7beb..9fcc618439c3 100644
--- a/sw/source/core/doc/docfmt.cxx
+++ b/sw/source/core/doc/docfmt.cxx
@@ -265,7 +265,7 @@ static bool lcl_RstAttr( const SwNodePtr& rpNd, void* pArgs )
"<lcl_RstAttr(..)> - certain attributes are kept, but not needed. -> please inform OD" );
SfxItemIter aIter( *pPara->pDelSet );
pItem = aIter.FirstItem();
- while( sal_True )
+ while( true )
{
if ( ( pItem->Which() != RES_PAGEDESC &&
pItem->Which() != RES_BREAK &&
@@ -1156,7 +1156,7 @@ void SwDoc::SetDefault( const SfxItemSet& rSet )
sal_uInt16 nWhich;
const SfxPoolItem* pItem = aIter.GetCurItem();
SfxItemPool* pSdrPool = GetAttrPool().GetSecondaryPool();
- while( sal_True )
+ while( true )
{
bool bCheckSdrDflt = false;
nWhich = pItem->Which();
diff --git a/sw/source/core/doc/docredln.cxx b/sw/source/core/doc/docredln.cxx
index 66c7cb290f13..4976fb1555df 100644
--- a/sw/source/core/doc/docredln.cxx
+++ b/sw/source/core/doc/docredln.cxx
@@ -2933,7 +2933,7 @@ SwRedlineExtraData_Format::SwRedlineExtraData_Format( const SfxItemSet& rSet )
{
SfxItemIter aIter( rSet );
const SfxPoolItem* pItem = aIter.FirstItem();
- while( sal_True )
+ while( true )
{
aWhichIds.push_back( pItem->Which() );
if( aIter.IsAtEnd() )
diff --git a/sw/source/core/docnode/ndcopy.cxx b/sw/source/core/docnode/ndcopy.cxx
index 2eeea7a1da32..bbff535250e7 100644
--- a/sw/source/core/docnode/ndcopy.cxx
+++ b/sw/source/core/docnode/ndcopy.cxx
@@ -636,7 +636,7 @@ static void lcl_DeleteRedlines( const SwPaM& rPam, SwPaM& rCpyPam )
if( pDelPam->GetNext() == pDelPam )
break;
delete pDelPam->GetNext();
- } while( sal_True );
+ } while( true );
delete pDelPam;
pDestDoc->SetRedlineMode_intern( eOld );
@@ -1241,7 +1241,7 @@ bool SwDoc::CopyImpl( SwPaM& rPam, SwPosition& rPos,
pDestTxtNd->SetAttr( aBrkSet );
}
}
- } while( sal_False );
+ } while( false );
// Adjust position (in case it was moved / in another node)
rPos.nContent.Assign( rPos.nNode.GetNode().GetCntntNode(),
diff --git a/sw/source/core/docnode/ndsect.cxx b/sw/source/core/docnode/ndsect.cxx
index 7e4035883a02..41a29a5c0a51 100644
--- a/sw/source/core/docnode/ndsect.cxx
+++ b/sw/source/core/docnode/ndsect.cxx
@@ -619,7 +619,7 @@ void SwDoc::UpdateSection(sal_uInt16 const nPos, SwSectionData & rNewData,
{
SfxItemIter aIter( *pAttr );
sal_uInt16 nWhich = aIter.GetCurItem()->Which();
- while( sal_True )
+ while( true )
{
if( pFmt->GetFmtAttr( nWhich ) != *aIter.GetCurItem() )
{
diff --git a/sw/source/core/fields/cellfml.cxx b/sw/source/core/fields/cellfml.cxx
index 62c03c62252a..44ca2e3323dd 100644
--- a/sw/source/core/fields/cellfml.cxx
+++ b/sw/source/core/fields/cellfml.cxx
@@ -221,7 +221,7 @@ double SwTableBox::GetValue( SwTblCalcPara& rCalcPara ) const
}
// ?? sonst ist das ein Fehler
- } while( sal_False );
+ } while( false );
if( !rCalcPara.IsStackOverFlow() )
{
@@ -675,7 +675,7 @@ String SwTableFormula::ScanString( FnScanFormel fnFormel, const SwTable& rTbl,
}
nFml = nEnd+1;
- } while( sal_True );
+ } while( true );
return aStr;
}
@@ -955,7 +955,7 @@ void SwTableFormula::GetBoxes( const SwTableBox& rSttBox,
if( pTbl->IsHeadline( *pLine ) )
rBoxes.erase( rBoxes.begin() + n-- );
}
- } while( sal_False );
+ } while( false );
}
}
diff --git a/sw/source/core/fields/chpfld.cxx b/sw/source/core/fields/chpfld.cxx
index 4de44399ddaf..1af94f78f818 100644
--- a/sw/source/core/fields/chpfld.cxx
+++ b/sw/source/core/fields/chpfld.cxx
@@ -143,7 +143,7 @@ void SwChapterField::ChangeExpansion(const SwTxtNode &rTxtNd, sal_Bool bSrchNum)
}
else
break;
- } while( sal_True );
+ } while( true );
}
// nur die Nummer besorgen, ohne Pre-/Post-fixstrings
diff --git a/sw/source/core/layout/frmtool.cxx b/sw/source/core/layout/frmtool.cxx
index a05a56214a7d..56ad6a5823ec 100644
--- a/sw/source/core/layout/frmtool.cxx
+++ b/sw/source/core/layout/frmtool.cxx
@@ -1276,7 +1276,7 @@ void _InsertCnt( SwLayoutFrm *pLay, SwDoc *pDoc,
//the SwActualSection class has a member, which points to an upper(section).
//When the "inner" section finishs, the upper will used instead.
- while( sal_True )
+ while( true )
{
SwNode *pNd = pDoc->GetNodes()[nIndex];
if ( pNd->IsCntntNode() )
diff --git a/sw/source/core/layout/trvlfrm.cxx b/sw/source/core/layout/trvlfrm.cxx
index 443af12c9bcd..484acfb247b0 100644
--- a/sw/source/core/layout/trvlfrm.cxx
+++ b/sw/source/core/layout/trvlfrm.cxx
@@ -1644,7 +1644,7 @@ Point SwRootFrm::GetPagePos( sal_uInt16 nPageNum ) const
OSL_ENSURE( Lower() && Lower()->IsPageFrm(), "Keine Seite vorhanden." );
const SwPageFrm *pPage = (const SwPageFrm*)Lower();
- while ( sal_True )
+ while ( true )
{
if ( pPage->GetPhyPageNum() >= nPageNum || !pPage->GetNext() )
break;
@@ -2192,7 +2192,7 @@ void SwRootFrm::CalcFrmRects( SwShellCrsr &rCrsr, sal_Bool bIsTblMode )
}
break;
}
- } while( sal_False );
+ } while( false );
SwCrsrMoveState aTmpState( MV_NONE );
aTmpState.b2Lines = sal_True;
diff --git a/sw/source/core/text/frmcrsr.cxx b/sw/source/core/text/frmcrsr.cxx
index 5cef43d186e7..d6146ad14a38 100644
--- a/sw/source/core/text/frmcrsr.cxx
+++ b/sw/source/core/text/frmcrsr.cxx
@@ -890,7 +890,7 @@ sal_Bool SwTxtFrm::_UnitUp( SwPaM *pPam, const SwTwips nOffset,
aCharBox.SSize().Width() /= 2;
}
break;
- } while ( sal_True );
+ } while ( true );
}
/* If 'this' is a follow and a prev failed, we need to go to the
* last line of the master, which is us.
@@ -1292,7 +1292,7 @@ sal_Bool SwTxtFrm::_UnitDown(SwPaM *pPam, const SwTwips nOffset,
}
}
break;
- } while( sal_True );
+ } while( true );
}
else
pTmpFollow = GetFollow();
diff --git a/sw/source/core/text/itrcrsr.cxx b/sw/source/core/text/itrcrsr.cxx
index ab249f3a59c7..54a9be560d43 100644
--- a/sw/source/core/text/itrcrsr.cxx
+++ b/sw/source/core/text/itrcrsr.cxx
@@ -94,7 +94,7 @@ static void lcl_GetCharRectInsideField( SwTxtSizeInfo& rInf, SwRect& rOrig,
rOrig.Pos().X() += pPor->Width();
pPor = pPor->GetPortion();
- } while ( sal_True );
+ } while ( true );
OSL_ENSURE( nCharOfst >= nFldIdx, "Request of position inside field failed" );
sal_uInt16 nLen = nCharOfst - nFldIdx + 1;
diff --git a/sw/source/filter/basflt/shellio.cxx b/sw/source/filter/basflt/shellio.cxx
index e887a6aa7f11..023a37380c6d 100644
--- a/sw/source/filter/basflt/shellio.cxx
+++ b/sw/source/filter/basflt/shellio.cxx
@@ -811,7 +811,7 @@ sal_uLong SwWriter::Write( WriterRef& rxWriter, const String* pRealFileName )
SwPaM *pEnd = pPam;
// Erste Runde: Nachsehen, ob eine Selektion besteht.
- while(sal_True)
+ while(true)
{
bHasMark = bHasMark || pPam->HasMark();
pPam = (SwPaM *) pPam->GetNext();
diff --git a/sw/source/filter/html/htmlnum.cxx b/sw/source/filter/html/htmlnum.cxx
index 9c2db5310ad7..c0273901bcab 100644
--- a/sw/source/filter/html/htmlnum.cxx
+++ b/sw/source/filter/html/htmlnum.cxx
@@ -768,7 +768,7 @@ Writer& OutHTML_NumBulListStart( SwHTMLWriter& rWrt,
break;
}
}
- while( sal_True );
+ while( true );
}
}
}
diff --git a/sw/source/ui/app/apphdl.cxx b/sw/source/ui/app/apphdl.cxx
index 19cab0127cfc..0bbbd3653519 100644
--- a/sw/source/ui/app/apphdl.cxx
+++ b/sw/source/ui/app/apphdl.cxx
@@ -148,10 +148,10 @@ void SwModule::StateOther(SfxItemSet &rSet)
case FN_LABEL:
case FN_ENVELOP:
{
- sal_Bool bDisable = sal_False;
+ bool bDisable = false;
SfxViewShell* pCurrView = SfxViewShell::Current();
if( !pCurrView || (pCurrView && !pCurrView->ISA(SwView)) )
- bDisable = sal_True;
+ bDisable = true;
SwDocShell *pDocSh = (SwDocShell*) SfxObjectShell::Current();
if ( bDisable ||
(pDocSh && (pDocSh->IsReadOnly() ||
diff --git a/sw/source/ui/app/docsh2.cxx b/sw/source/ui/app/docsh2.cxx
index ea3c74b0ce0d..e30f8f7fbad0 100644
--- a/sw/source/ui/app/docsh2.cxx
+++ b/sw/source/ui/app/docsh2.cxx
@@ -264,7 +264,7 @@ void SwDocShell::Notify( SfxBroadcaster&, const SfxHint& rHint )
if( nAction )
{
- sal_Bool bUnlockView = sal_True; //initializing prevents warning
+ bool bUnlockView = true; //initializing prevents warning
if( pWrtShell )
{
bUnlockView = !pWrtShell->IsViewLocked();
diff --git a/sw/source/ui/app/docshini.cxx b/sw/source/ui/app/docshini.cxx
index e39bcc65ff31..55ece7305d4c 100644
--- a/sw/source/ui/app/docshini.cxx
+++ b/sw/source/ui/app/docshini.cxx
@@ -663,7 +663,7 @@ sal_Bool SwDocShell::LoadFrom( SfxMedium& rMedium )
SetError( nErr, ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( OSL_LOG_PREFIX ) ) );
bRet = !IsError( nErr );
- } while( sal_False );
+ } while( false );
SfxObjectShell::LoadFrom( rMedium );
pDoc->ResetModified();
diff --git a/sw/source/ui/app/docstyle.cxx b/sw/source/ui/app/docstyle.cxx
index 023faaa3356c..4de30f3ecb9d 100644
--- a/sw/source/ui/app/docstyle.cxx
+++ b/sw/source/ui/app/docstyle.cxx
@@ -1421,7 +1421,7 @@ void SwDocStyleSheet::SetItemSet( const SfxItemSet& rSet,
{
SfxItemIter aIter( rSet );
const SfxPoolItem* pItem = aIter.GetCurItem();
- while( sal_True )
+ while( true )
{
if( IsInvalidItem( pItem ) ) // Clear
{
diff --git a/sw/source/ui/chrdlg/drpcps.cxx b/sw/source/ui/chrdlg/drpcps.cxx
index 1b2cc0c58da6..f8838fdcbeb0 100644
--- a/sw/source/ui/chrdlg/drpcps.cxx
+++ b/sw/source/ui/chrdlg/drpcps.cxx
@@ -389,7 +389,7 @@ void SwDropCapsPict::DrawPrev( const Point& rPt )
if ( !GetNextScriptSegment(nIdx, nStart, nEnd, nScript) )
break;
}
- while( sal_True );
+ while( true );
mpPrinter->SetFont( aOldFont );
}
@@ -425,7 +425,7 @@ void SwDropCapsPict::CheckScript( void )
nScript = xBreak->getScriptType( maText, nChg );
else
break;
- } while( sal_True );
+ } while( true );
}
Size SwDropCapsPict::CalcTextSize( void )
@@ -468,7 +468,7 @@ Size SwDropCapsPict::CalcTextSize( void )
if ( !GetNextScriptSegment(nIdx, nStart, nEnd, nScript) )
break;
}
- while( sal_True );
+ while( true );
nHeight -= nAscent;
nCJKHeight -= nCJKAscent;
nCTLHeight -= nCTLAscent;
diff --git a/sw/source/ui/config/uinums.cxx b/sw/source/ui/config/uinums.cxx
index 388e0aabcdb0..8e416d74c4c1 100644
--- a/sw/source/ui/config/uinums.cxx
+++ b/sw/source/ui/config/uinums.cxx
@@ -291,7 +291,7 @@ SwNumRulesWithName::_SwNumFmtGlobal::_SwNumFmtGlobal( const SwNumFmt& rFmt )
{
SfxItemIter aIter( pFmt->GetAttrSet() );
const SfxPoolItem *pCurr = aIter.GetCurItem();
- while( sal_True )
+ while( true )
{
aItems.push_back( pCurr->Clone() );
if( aIter.IsAtEnd() )
diff --git a/sw/source/ui/dbui/dbinsdlg.cxx b/sw/source/ui/dbui/dbinsdlg.cxx
index 0a9b3d9b0ca9..9c6cc3e38b7d 100644
--- a/sw/source/ui/dbui/dbinsdlg.cxx
+++ b/sw/source/ui/dbui/dbinsdlg.cxx
@@ -1403,7 +1403,7 @@ void SwInsertDBColAutoPilot::DataToDoc( const Sequence<Any>& rSelection,
}
// write configuration
Commit();
- }while( sal_False ); // middle checked loop
+ }while( false ); // middle checked loop
if( bUndo )
{
diff --git a/sw/source/ui/dochdl/swdtflvr.cxx b/sw/source/ui/dochdl/swdtflvr.cxx
index 0acfea750f62..f6670eabbf5c 100644
--- a/sw/source/ui/dochdl/swdtflvr.cxx
+++ b/sw/source/ui/dochdl/swdtflvr.cxx
@@ -2105,7 +2105,7 @@ int SwTransferable::_PasteDDE( TransferableDataHelper& rData,
rWrtShell.Insert( aSwDDEField );
}
- } while( sal_False );
+ } while( false );
}
else
pDDETyp = 0; // remove FieldTypes again
diff --git a/sw/source/ui/lingu/hhcwrp.cxx b/sw/source/ui/lingu/hhcwrp.cxx
index 454c6ba6ff8f..94439852579b 100644
--- a/sw/source/ui/lingu/hhcwrp.cxx
+++ b/sw/source/ui/lingu/hhcwrp.cxx
@@ -260,7 +260,7 @@ void SwHHCWrapper::ChangeText( const String &rNewText,
"mismatch between string length and sequence length!" );
// find all substrings that need to be replaced (and only those)
- while (sal_True)
+ while (true)
{
// get index in original text that matches nPos in new text
xub_StrLen nIndex;
diff --git a/sw/source/ui/utlui/attrdesc.cxx b/sw/source/ui/utlui/attrdesc.cxx
index c9e5e5d51acb..0ac42890ce11 100644
--- a/sw/source/ui/utlui/attrdesc.cxx
+++ b/sw/source/ui/utlui/attrdesc.cxx
@@ -75,7 +75,7 @@ void SwAttrSet::GetPresentation(
SfxItemIter aIter( *this );
const IntlWrapper rInt( ::comphelper::getProcessComponentContext(),
GetAppLanguageTag() );
- while( sal_True )
+ while( true )
{
aIter.GetCurItem()->GetPresentation( ePres, eCoreMetric,
ePresMetric, aStr,