[Libreoffice-commits] core.git: basic/source bridges/test comphelper/source connectivity/source cppu/source cui/source dbaccess/source editeng/source filter/source forms/source framework/source io/source lotuswordpro/source oox/source rsc/source sax/source sax/test sd/source sfx2/source svl/source svtools/source svx/source vcl/source xmloff/source
Takeshi Abe
tabe at fixedpoint.jp
Mon Mar 4 06:23:04 PST 2013
basic/source/runtime/methods.cxx | 2 +-
bridges/test/testoffice.cxx | 2 +-
bridges/test/testsameprocess.cxx | 2 +-
bridges/test/testserver.cxx | 2 +-
comphelper/source/misc/asyncnotification.cxx | 2 +-
connectivity/source/drivers/mozab/mozillasrc/MQueryHelper.cxx | 2 +-
cppu/source/threadpool/jobqueue.cxx | 2 +-
cui/source/dialogs/cuigaldlg.cxx | 4 ++--
dbaccess/source/ui/browser/sbagrid.cxx | 4 ++--
editeng/source/editeng/textconv.cxx | 2 +-
editeng/source/items/frmitems.cxx | 4 ++--
editeng/source/misc/svxacorr.cxx | 2 +-
editeng/source/misc/txtrange.cxx | 2 +-
editeng/source/rtf/rtfitem.cxx | 6 +++---
editeng/source/rtf/svxrtf.cxx | 8 ++++----
filter/source/graphicfilter/eps/eps.cxx | 2 +-
forms/source/component/EventThread.cxx | 2 +-
framework/source/accelerators/storageholder.cxx | 2 +-
framework/source/dispatch/closedispatcher.cxx | 2 +-
io/source/TextInputStream/TextInputStream.cxx | 2 +-
io/source/TextOutputStream/TextOutputStream.cxx | 2 +-
io/source/stm/odata.cxx | 4 ++--
io/source/stm/opipe.cxx | 4 ++--
lotuswordpro/source/filter/explode.cxx | 2 +-
lotuswordpro/source/filter/lwppara.cxx | 2 +-
oox/source/drawingml/textrun.cxx | 2 +-
rsc/source/parser/rsclex.cxx | 2 +-
sax/source/expatwrap/xml2utf.cxx | 6 +++---
sax/test/sax/testsax.cxx | 4 ++--
sd/source/filter/eppt/pptx-epptbase.cxx | 6 +++---
sd/source/filter/ppt/pptin.cxx | 4 ++--
sfx2/source/appl/appserv.cxx | 2 +-
sfx2/source/appl/newhelp.cxx | 2 +-
sfx2/source/dialog/filedlghelper.cxx | 4 ++--
svl/source/filerec/filerec.cxx | 2 +-
svl/source/items/itemset.cxx | 4 ++--
svtools/source/contnr/treelistbox.cxx | 2 +-
svx/source/dialog/docrecovery.cxx | 2 +-
svx/source/dialog/fntctrl.cxx | 6 +++---
svx/source/dialog/srchdlg.cxx | 2 +-
svx/source/form/fmshimp.cxx | 2 +-
svx/source/xoutdev/_xoutbmp.cxx | 4 ++--
vcl/source/filter/ixpm/xpmread.cxx | 2 +-
vcl/source/filter/wmf/winwmf.cxx | 2 +-
xmloff/source/core/nmspmap.cxx | 2 +-
45 files changed, 66 insertions(+), 66 deletions(-)
New commits:
commit ce33f85ffdb8612c9fba9356acdaa93a08a9ba41
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date: Mon Mar 4 23:11:48 2013 +0900
sal_Bool to bool
Change-Id: I8c554fb3faead41c974af9c2a89728bd0bdf5eb6
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index 7446209..5dc45ed 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -454,7 +454,7 @@ RTLFUNC(CurDir)
int nSize = _PATH_INCR;
char* pMem;
- while( sal_True )
+ while( true )
{
pMem = new char[nSize];
if( !pMem )
diff --git a/bridges/test/testoffice.cxx b/bridges/test/testoffice.cxx
index 0fca508..55c28f4 100644
--- a/bridges/test/testoffice.cxx
+++ b/bridges/test/testoffice.cxx
@@ -111,7 +111,7 @@ void testWriter( const Reference < XComponent > & rCmp )
char pcText[1024];
pcText[0] = 0;
printf( "pleast type any text\n" );
- while( sal_True )
+ while( true )
{
scanf( "%s" , pcText );
diff --git a/bridges/test/testsameprocess.cxx b/bridges/test/testsameprocess.cxx
index 0b36d88..33781aa 100644
--- a/bridges/test/testsameprocess.cxx
+++ b/bridges/test/testsameprocess.cxx
@@ -79,7 +79,7 @@ private:
void MyThread::run()
{
- while ( sal_True )
+ while ( true )
{
try
{
diff --git a/bridges/test/testserver.cxx b/bridges/test/testserver.cxx
index c76b8f2..d021294 100644
--- a/bridges/test/testserver.cxx
+++ b/bridges/test/testserver.cxx
@@ -109,7 +109,7 @@ void MyThread::latencyTest( const Reference< XConnection > &r )
void MyThread::run()
{
- while ( sal_True )
+ while ( true )
{
try
{
diff --git a/comphelper/source/misc/asyncnotification.cxx b/comphelper/source/misc/asyncnotification.cxx
index 308ba4a..8b1d81a 100644
--- a/comphelper/source/misc/asyncnotification.cxx
+++ b/comphelper/source/misc/asyncnotification.cxx
@@ -231,7 +231,7 @@ namespace comphelper
m_pImpl->aPendingActions.reset();
m_pImpl->aPendingActions.wait();
}
- while ( sal_True );
+ while ( true );
}
//........................................................................
diff --git a/connectivity/source/drivers/mozab/mozillasrc/MQueryHelper.cxx b/connectivity/source/drivers/mozab/mozillasrc/MQueryHelper.cxx
index 8fb4a48..588ec2f 100644
--- a/connectivity/source/drivers/mozab/mozillasrc/MQueryHelper.cxx
+++ b/connectivity/source/drivers/mozab/mozillasrc/MQueryHelper.cxx
@@ -233,7 +233,7 @@ MQueryHelper::getByIndex( sal_uInt32 nRow )
{
return( m_aResults[ nRow -1 ] );
}
- } while ( sal_True );
+ } while ( true );
}
sal_Bool
diff --git a/cppu/source/threadpool/jobqueue.cxx b/cppu/source/threadpool/jobqueue.cxx
index 35cae34..70d05ac 100644
--- a/cppu/source/threadpool/jobqueue.cxx
+++ b/cppu/source/threadpool/jobqueue.cxx
@@ -67,7 +67,7 @@ namespace cppu_threadpool {
}
- while( sal_True )
+ while( true )
{
if( bReturnWhenNoJob )
{
diff --git a/cui/source/dialogs/cuigaldlg.cxx b/cui/source/dialogs/cuigaldlg.cxx
index 87a6e7c..b2d44ea 100644
--- a/cui/source/dialogs/cuigaldlg.cxx
+++ b/cui/source/dialogs/cuigaldlg.cxx
@@ -863,7 +863,7 @@ void TPGalleryThemeProperties::FillFilterList()
String aExtensions;
int j = 0;
String sWildcard;
- while( sal_True )
+ while( true )
{
sWildcard = rFilter.GetImportWildcard( i, j++ );
if ( !sWildcard.Len() )
@@ -938,7 +938,7 @@ void TPGalleryThemeProperties::FillFilterList()
{
int j = 0;
String sWildcard;
- while( sal_True )
+ while( true )
{
sWildcard = rFilter.GetImportWildcard( i, j++ );
if ( !sWildcard.Len() )
diff --git a/dbaccess/source/ui/browser/sbagrid.cxx b/dbaccess/source/ui/browser/sbagrid.cxx
index eb43718..e91a9c1 100644
--- a/dbaccess/source/ui/browser/sbagrid.cxx
+++ b/dbaccess/source/ui/browser/sbagrid.cxx
@@ -1216,7 +1216,7 @@ void SbaGridControl::StartDrag( sal_Int8 _nAction, const Point& _rPosPixel )
bHandled = sal_True;
}
}
- while (sal_False);
+ while (false);
if (!bHandled)
FmGridControl::StartDrag(_nAction, _rPosPixel);
@@ -1448,7 +1448,7 @@ sal_Int8 SbaGridControl::AcceptDrop( const BrowserAcceptDropEvent& rEvt )
DBG_UNHANDLED_EXCEPTION();
}
- } while (sal_False);
+ } while (false);
if(nAction != DND_ACTION_COPY && GetEmptyRow().Is())
{
diff --git a/editeng/source/editeng/textconv.cxx b/editeng/source/editeng/textconv.cxx
index 1431894..9be883c 100644
--- a/editeng/source/editeng/textconv.cxx
+++ b/editeng/source/editeng/textconv.cxx
@@ -478,7 +478,7 @@ void TextConvWrapper::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/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx
index 698a235..dab5e82 100644
--- a/editeng/source/items/frmitems.cxx
+++ b/editeng/source/items/frmitems.cxx
@@ -2286,7 +2286,7 @@ SfxPoolItem* SvxBoxItem::Create( SvStream& rStrm, sal_uInt16 nIVersion ) const
BOX_LINE_RIGHT, BOX_LINE_BOTTOM };
sal_Int8 cLine;
- while( sal_True )
+ while( true )
{
rStrm >> cLine;
@@ -2657,7 +2657,7 @@ SfxPoolItem* SvxBoxInfoItem::Create( SvStream& rStrm, sal_uInt16 ) const
pAttr->SetMinDist( ( cFlags & 0x04 ) != 0 );
pAttr->SetDefDist( _nDefDist );
- while( sal_True )
+ while( true )
{
sal_Int8 cLine;
rStrm >> cLine;
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index fb05f4d..3c78120 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -1402,7 +1402,7 @@ sal_uLong SvxAutoCorrect::AutoCorrect( SvxAutoCorrDoc& rDoc, const String& rTxt,
nRet |= ChgToEnEmDash;
}
- } while( sal_False );
+ } while( false );
if( nRet )
{
diff --git a/editeng/source/misc/txtrange.cxx b/editeng/source/misc/txtrange.cxx
index 8ba4052..60a3fad 100644
--- a/editeng/source/misc/txtrange.cxx
+++ b/editeng/source/misc/txtrange.cxx
@@ -341,7 +341,7 @@ void SvxBoundArgs::Calc( const PolyPolygon& rPoly )
if( nCount > 1 )
{
sal_uInt16 nIdx = 1;
- while( sal_True )
+ while( true )
{
const Point& rLast = rPol[ nIdx - 1 ];
if( nIdx == nCount )
diff --git a/editeng/source/rtf/rtfitem.cxx b/editeng/source/rtf/rtfitem.cxx
index a5e7a77..19cc0b2 100644
--- a/editeng/source/rtf/rtfitem.cxx
+++ b/editeng/source/rtf/rtfitem.cxx
@@ -270,7 +270,7 @@ void SvxRTFParser::ReadAttr( int nToken, SfxItemSet* pSet )
pAkt->SetStartPos( *pInsPos );
pSet = &pAkt->aAttrSet;
- } while( sal_False );
+ } while( false );
switch( nToken )
{
@@ -1194,7 +1194,7 @@ ATTR_SETEMPHASIS:
&aColor, nDist, eSL ) );
bSkip = sal_False;
- } while( sal_False );
+ } while( false );
if( bSkip )
SkipGroup(); // at the end of the group
@@ -1891,7 +1891,7 @@ void SvxRTFParser::SetDefault( int nToken, int nValue )
{
SfxItemIter aIter( aTmp );
const SfxPoolItem* pItem = aIter.GetCurItem();
- while( sal_True )
+ while( true )
{
pAttrPool->SetPoolDefaultItem( *pItem );
if( aIter.IsAtEnd() )
diff --git a/editeng/source/rtf/svxrtf.cxx b/editeng/source/rtf/svxrtf.cxx
index baccbde..e5af0b0 100644
--- a/editeng/source/rtf/svxrtf.cxx
+++ b/editeng/source/rtf/svxrtf.cxx
@@ -907,7 +907,7 @@ void SvxRTFParser::AttrGroupEnd() // process the current, delete from Stack
{
SfxItemIter aIter( pOld->aAttrSet );
const SfxPoolItem* pItem = aIter.GetCurItem(), *pGet;
- while( sal_True )
+ while( true )
{
if( SFX_ITEM_SET == pAkt->aAttrSet.GetItemState(
pItem->Which(), sal_False, &pGet ) &&
@@ -1052,7 +1052,7 @@ void SvxRTFParser::AttrGroupEnd() // process the current, delete from Stack
// at the beginning of a paragraph? Move back one position
MovePos( sal_True );
- } while( sal_False );
+ } while( false );
if( pOld )
delete pOld;
@@ -1290,7 +1290,7 @@ void SvxRTFItemStackType::Compress( const SvxRTFParser& rParser )
if( aIter.IsAtEnd() )
break;
aIter.NextItem();
- } while( sal_True );
+ } while( true );
if( !aMrgSet.Count() )
return;
@@ -1337,7 +1337,7 @@ void SvxRTFItemStackType::SetRTFDefaults( const SfxItemSet& rDefaults )
if( aIter.IsAtEnd() )
break;
aIter.NextItem();
- } while( sal_True );
+ } while( true );
}
}
diff --git a/filter/source/graphicfilter/eps/eps.cxx b/filter/source/graphicfilter/eps/eps.cxx
index 4ec0de7..47d678e 100644
--- a/filter/source/graphicfilter/eps/eps.cxx
+++ b/filter/source/graphicfilter/eps/eps.cxx
@@ -1713,7 +1713,7 @@ void PSWriter::ImplBmp( Bitmap* pBitmap, Bitmap* pMaskBitmap, const Point & rPoi
if ( pMaskBitmap )
{
bDoTrans = sal_True;
- while (sal_True)
+ while (true)
{
if ( mnLevel == 1 )
{
diff --git a/forms/source/component/EventThread.cxx b/forms/source/component/EventThread.cxx
index 174812e..4ee8700 100644
--- a/forms/source/component/EventThread.cxx
+++ b/forms/source/component/EventThread.cxx
@@ -218,7 +218,7 @@ void OComponentEventThread::run()
m_aCond.wait();
}
}
- while( sal_True );
+ while( true );
}
//.........................................................................
diff --git a/framework/source/accelerators/storageholder.cxx b/framework/source/accelerators/storageholder.cxx
index e128439..ed05f6f 100644
--- a/framework/source/accelerators/storageholder.cxx
+++ b/framework/source/accelerators/storageholder.cxx
@@ -573,7 +573,7 @@ OUStringList StorageHolder::impl_st_parsePath(const ::rtl::OUString& sPath)
{
OUStringList lToken;
sal_Int32 i = 0;
- while (sal_True)
+ while (true)
{
::rtl::OUString sToken = sPath.getToken(0, PATH_SEPERATOR_UNICODE, i);
if (i < 0)
diff --git a/framework/source/dispatch/closedispatcher.cxx b/framework/source/dispatch/closedispatcher.cxx
index 90d560c..8361ff6 100644
--- a/framework/source/dispatch/closedispatcher.cxx
+++ b/framework/source/dispatch/closedispatcher.cxx
@@ -599,7 +599,7 @@ css::uno::Reference< css::frame::XFrame > CloseDispatcher::static_impl_searchRig
OSL_ENSURE(sTarget.isEmpty(), "CloseDispatch used for unexpected target. Magic things will happen now .-)");
css::uno::Reference< css::frame::XFrame > xTarget = xFrame;
- while(sal_True)
+ while(true)
{
// a) top frames wil be closed
if (xTarget->isTop())
diff --git a/io/source/TextInputStream/TextInputStream.cxx b/io/source/TextInputStream/TextInputStream.cxx
index 0a3e903..148896b 100644
--- a/io/source/TextInputStream/TextInputStream.cxx
+++ b/io/source/TextInputStream/TextInputStream.cxx
@@ -299,7 +299,7 @@ sal_Int32 OTextInputStream::implReadNext()
sal_Size nSrcCvtBytes = 0;
sal_Size nTargetCount = 0;
sal_Size nSourceCount = 0;
- while( sal_True )
+ while( true )
{
const sal_Int8 *pbSource = mSeqSource.getConstArray();
diff --git a/io/source/TextOutputStream/TextOutputStream.cxx b/io/source/TextOutputStream/TextOutputStream.cxx
index d22add7..6716eb6 100644
--- a/io/source/TextOutputStream/TextOutputStream.cxx
+++ b/io/source/TextOutputStream/TextOutputStream.cxx
@@ -127,7 +127,7 @@ Sequence<sal_Int8> OTextOutputStream::implConvert( const OUString& rSource )
Sequence<sal_Int8> seqText( nSeqSize );
sal_Char *pTarget = (sal_Char *) seqText.getArray();
- while( sal_True )
+ while( true )
{
nTargetCount += rtl_convertUnicodeToText(
mConvUnicode2Text,
diff --git a/io/source/stm/odata.cxx b/io/source/stm/odata.cxx
index c928de0..1636c1a 100644
--- a/io/source/stm/odata.cxx
+++ b/io/source/stm/odata.cxx
@@ -1104,7 +1104,7 @@ void OObjectOutputStream::connectToMarkable(void)
// find the markable stream !
Reference< XInterface > rTry(m_output);
- while( sal_True ) {
+ while( true ) {
if( ! rTry.is() )
{
throw NotConnectedException();
@@ -1411,7 +1411,7 @@ void OObjectInputStream::connectToMarkable()
// find the markable stream !
Reference< XInterface > rTry(m_input);
- while( sal_True ) {
+ while( true ) {
if( ! rTry.is() )
{
throw NotConnectedException( );
diff --git a/io/source/stm/opipe.cxx b/io/source/stm/opipe.cxx
index b6903e5..27c5ce0 100644
--- a/io/source/stm/opipe.cxx
+++ b/io/source/stm/opipe.cxx
@@ -148,7 +148,7 @@ OPipeImpl::~OPipeImpl()
sal_Int32 OPipeImpl::readBytes(Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead)
throw( NotConnectedException, BufferSizeExceededException,RuntimeException )
{
- while( sal_True )
+ while( true )
{
{ // start guarded section
MutexGuard guard( m_mutexAccess );
@@ -188,7 +188,7 @@ sal_Int32 OPipeImpl::readSomeBytes(Sequence< sal_Int8 >& aData, sal_Int32 nMaxBy
BufferSizeExceededException,
RuntimeException )
{
- while( sal_True ) {
+ while( true ) {
{
MutexGuard guard( m_mutexAccess );
if( m_bInputStreamClosed )
diff --git a/lotuswordpro/source/filter/explode.cxx b/lotuswordpro/source/filter/explode.cxx
index 625d1cf..7254425 100644
--- a/lotuswordpro/source/filter/explode.cxx
+++ b/lotuswordpro/source/filter/explode.cxx
@@ -224,7 +224,7 @@ sal_Int32 Decompression::explode()
m_nOutputBufferPos = 0;
/* Now, a bit stream follows, which is decoded as described below: */
/* The algorithm terminates as soon as it runs out of bits. */
- while(sal_True)
+ while(true)
{
// read 1 bit (take bits from the lowest value (LSB) to the MSB i.e. bit 0, bit 1 etc ...)
sal_uInt32 iBit;
diff --git a/lotuswordpro/source/filter/lwppara.cxx b/lotuswordpro/source/filter/lwppara.cxx
index 0059f59..e274aa3 100644
--- a/lotuswordpro/source/filter/lwppara.cxx
+++ b/lotuswordpro/source/filter/lwppara.cxx
@@ -588,7 +588,7 @@ void LwpPara::RegisterStyle()
}
bHeading = pNumbering->IsHeading();
- while(sal_True)
+ while(true)
{
/*// When we hit the hint paragraph, we can stop and check the hint.
if (qNumberHint && (qPara == qNumberHint->GetPara()) &&
diff --git a/oox/source/drawingml/textrun.cxx b/oox/source/drawingml/textrun.cxx
index e5ab05d..6193cf0 100644
--- a/oox/source/drawingml/textrun.cxx
+++ b/oox/source/drawingml/textrun.cxx
@@ -83,7 +83,7 @@ sal_Int32 TextRun::insertAt(
aTextCharacterProps.maLatinFont.getFontData( aLatinFontName, nLatinFontPitch, nLatinFontFamily, rFilterBase );
sal_Int32 nIndex = 0;
- while ( sal_True )
+ while ( true )
{
sal_Int32 nCount = 0;
sal_Bool bSymbol = ( getText()[ nIndex ] & 0xff00 ) == 0xf000;
diff --git a/rsc/source/parser/rsclex.cxx b/rsc/source/parser/rsclex.cxx
index 9016db0..a78301a 100644
--- a/rsc/source/parser/rsclex.cxx
+++ b/rsc/source/parser/rsclex.cxx
@@ -110,7 +110,7 @@ sal_uInt32 GetNumber(){
int MakeToken( YYSTYPE * pTokenVal ){
int c1;
- while( sal_True ){ // Kommentare und Leerzeichen ueberlesen
+ while( true ){ // Kommentare und Leerzeichen ueberlesen
while( isspace( c ) )
c = pFI->GetFastChar();
if( '/' == c ){
diff --git a/sax/source/expatwrap/xml2utf.cxx b/sax/source/expatwrap/xml2utf.cxx
index 97bc44d..69065c6 100644
--- a/sax/source/expatwrap/xml2utf.cxx
+++ b/sax/source/expatwrap/xml2utf.cxx
@@ -53,7 +53,7 @@ sal_Int32 XMLFile2UTFConverter::readAndConvert( Sequence<sal_Int8> &seq , sal_In
sal_Int32 nRead;
Sequence< sal_Int8 > seqStart;
- while( sal_True )
+ while( true )
{
nRead = m_in->readSomeBytes( seq , nMaxToRead );
@@ -409,7 +409,7 @@ Sequence<sal_Unicode> Text2UnicodeConverter::convert( const Sequence<sal_Int8> &
m_seqSource = Sequence< sal_Int8 >();
}
- while( sal_True ) {
+ while( true ) {
/* All invalid characters are transformed to the unicode undefined char */
nTargetCount += rtl_convertTextToUnicode(
@@ -509,7 +509,7 @@ Sequence<sal_Int8> Unicode2TextConverter::convert(const sal_Unicode *puSource ,
Sequence<sal_Int8> seqText( nSeqSize );
sal_Char *pTarget = (sal_Char *) seqText.getArray();
- while( sal_True ) {
+ while( true ) {
nTargetCount += rtl_convertUnicodeToText(
m_convUnicode2Text,
diff --git a/sax/test/sax/testsax.cxx b/sax/test/sax/testsax.cxx
index 469959c..3840da7 100644
--- a/sax/test/sax/testsax.cxx
+++ b/sax/test/sax/testsax.cxx
@@ -669,7 +669,7 @@ void OSaxParserTest::testFile( const Reference < XParser > & rParser )
Any any;
any <<= e;
- while(sal_True) {
+ while(true) {
SAXParseException *pEx;
if( any.getValueType() == getCppuType( &e ) ) {
pEx = ( SAXParseException * ) any.getValue();
@@ -736,7 +736,7 @@ void OSaxParserTest::testPerformance( const Reference < XParser > & rParser )
catch( SAXParseException &e ) {
Any any;
any <<= e;
- while(sal_True) {
+ while(true) {
if( any.getValueType() == getCppuType( &e ) ) {
SAXParseException ex;
any >>= ex;
diff --git a/sd/source/filter/eppt/pptx-epptbase.cxx b/sd/source/filter/eppt/pptx-epptbase.cxx
index 581fea7..f9c15f7 100644
--- a/sd/source/filter/eppt/pptx-epptbase.cxx
+++ b/sd/source/filter/eppt/pptx-epptbase.cxx
@@ -246,7 +246,7 @@ void PPTWriterBase::exportPPT( const std::vector< com::sun::star::beans::Propert
sal_Bool PPTWriterBase::InitSOIface()
{
- while( sal_True )
+ while( true )
{
mXDrawPagesSupplier = Reference< XDrawPagesSupplier >( mXModel, UNO_QUERY );
if ( !mXDrawPagesSupplier.is() )
@@ -275,7 +275,7 @@ sal_Bool PPTWriterBase::InitSOIface()
sal_Bool PPTWriterBase::GetPageByIndex( sal_uInt32 nIndex, PageType ePageType )
{
- while( sal_True )
+ while( true )
{
if ( ePageType != meLatestPageType )
{
@@ -730,7 +730,7 @@ Rectangle PPTWriterBase::MapRectangle( const awt::Rectangle& rRect )
sal_Bool PPTWriterBase::GetShapeByIndex( sal_uInt32 nIndex, sal_Bool bGroup )
{
- while(sal_True)
+ while(true)
{
if ( ( bGroup == sal_False ) || ( GetCurrentGroupLevel() == 0 ) )
{
diff --git a/sd/source/filter/ppt/pptin.cxx b/sd/source/filter/ppt/pptin.cxx
index ee4144f..5ffeb01 100644
--- a/sd/source/filter/ppt/pptin.cxx
+++ b/sd/source/filter/ppt/pptin.cxx
@@ -1499,7 +1499,7 @@ void ImplSdPPTImport::ImportPageEffect( SdPage* pPage, const sal_Bool bNewAnimat
sal_Bool bTryTwice = ( eAktPageKind == PPT_SLIDEPAGE );
sal_Bool bSSSlideInfoAtom = sal_False;
- while ( sal_True )
+ while ( true )
{
while ( ( rStCtrl.GetError() == 0 ) && ( rStCtrl.Tell() < nPageRecEnd ) )
{
@@ -2542,7 +2542,7 @@ SdrObject* ImplSdPPTImport::ProcessObj( SvStream& rSt, DffObjData& rObjData, voi
if ( maShapeRecords.SeekToContent( rSt, DFF_msofbtClientData, SEEK_FROM_CURRENT_AND_RESTART ) )
{
DffRecordHeader& rHdClientData = *maShapeRecords.Current();
- while( sal_True )
+ while( true )
{
sal_uInt32 nClientDataLen = rHdClientData.GetRecEndFilePos();
DffRecordHeader aHd;
diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx
index 978c69e..97ebdc4 100644
--- a/sfx2/source/appl/appserv.cxx
+++ b/sfx2/source/appl/appserv.cxx
@@ -442,7 +442,7 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq )
{
}
}
- while( sal_True );
+ while( true );
sal_Bool bOk = ( n == 0);
rReq.SetReturnValue( SfxBoolItem( 0, bOk ) );
diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx
index 066de34..1bd5f8d 100644
--- a/sfx2/source/appl/newhelp.cxx
+++ b/sfx2/source/appl/newhelp.cxx
@@ -1505,7 +1505,7 @@ void SfxHelpWindow_Impl::loadHelpContent(const ::rtl::OUString& sHelpURL, sal_Bo
if ( !IsWait() )
EnterWait();
sal_Bool bSuccess = sal_False;
-// TODO implement locale fallback ... see below while(sal_True)
+// TODO implement locale fallback ... see below while(true)
{
try
{
diff --git a/sfx2/source/dialog/filedlghelper.cxx b/sfx2/source/dialog/filedlghelper.cxx
index 4a1c879..6f707ac 100644
--- a/sfx2/source/dialog/filedlghelper.cxx
+++ b/sfx2/source/dialog/filedlghelper.cxx
@@ -1879,7 +1879,7 @@ void FileDialogHelper_Impl::addGraphicFilter()
{
j = 0;
String sWildcard;
- while( sal_True )
+ while( true )
{
sWildcard = mpGraphicFilter->GetImportWildcard( i, j++ );
if ( !sWildcard.Len() )
@@ -1919,7 +1919,7 @@ void FileDialogHelper_Impl::addGraphicFilter()
String aExt;
j = 0;
String sWildcard;
- while( sal_True )
+ while( true )
{
sWildcard = mpGraphicFilter->GetImportWildcard( i, j++ );
if ( !sWildcard.Len() )
diff --git a/svl/source/filerec/filerec.cxx b/svl/source/filerec/filerec.cxx
index a90c141..1787bf8 100644
--- a/svl/source/filerec/filerec.cxx
+++ b/svl/source/filerec/filerec.cxx
@@ -195,7 +195,7 @@ SfxMiniRecordReader::SfxMiniRecordReader
sal_uInt32 nStartPos = pStream->Tell();
// passenden Record suchen
- while(sal_True)
+ while(true)
{
// Header lesen
DBG( DbgOutf( "SfxFileRec: searching record at %ul", pStream->Tell() ) );
diff --git a/svl/source/items/itemset.cxx b/svl/source/items/itemset.cxx
index dbe5140..ae63c18 100644
--- a/svl/source/items/itemset.cxx
+++ b/svl/source/items/itemset.cxx
@@ -1111,7 +1111,7 @@ void SfxItemSet::Intersect( const SfxItemSet& rSet )
{
SfxItemIter aIter( *this );
const SfxPoolItem* pItem = aIter.GetCurItem();
- while( sal_True )
+ while( true )
{
sal_uInt16 nWhich = IsInvalidItem( pItem )
? GetWhichByPos( aIter.GetCurPos() )
@@ -1182,7 +1182,7 @@ void SfxItemSet::Differentiate( const SfxItemSet& rSet )
{
SfxItemIter aIter( *this );
const SfxPoolItem* pItem = aIter.GetCurItem();
- while( sal_True )
+ while( true )
{
sal_uInt16 nWhich = IsInvalidItem( pItem )
? GetWhichByPos( aIter.GetCurPos() )
diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx
index 381d0d8..feb68e2 100644
--- a/svtools/source/contnr/treelistbox.cxx
+++ b/svtools/source/contnr/treelistbox.cxx
@@ -882,7 +882,7 @@ void SvTreeListBox::FillEntryPath( SvTreeListEntry* pEntry, ::std::deque< sal_In
if ( pEntry )
{
SvTreeListEntry* pParentEntry = GetParent( pEntry );
- while ( sal_True )
+ while ( true )
{
sal_uLong i, nCount = GetLevelChildCount( pParentEntry );
for ( i = 0; i < nCount; ++i )
diff --git a/svx/source/dialog/docrecovery.cxx b/svx/source/dialog/docrecovery.cxx
index d696568..c1df29d 100644
--- a/svx/source/dialog/docrecovery.cxx
+++ b/svx/source/dialog/docrecovery.cxx
@@ -90,7 +90,7 @@ short TabDialog4Recovery::Execute()
Show();
m_pActualPage = m_lTabPages.begin();
- while(sal_True)
+ while(true)
{
IExtendedTabPage* pPage = *m_pActualPage;
SetViewWindow(pPage);
diff --git a/svx/source/dialog/fntctrl.cxx b/svx/source/dialog/fntctrl.cxx
index c240dca..06ee2c5 100644
--- a/svx/source/dialog/fntctrl.cxx
+++ b/svx/source/dialog/fntctrl.cxx
@@ -286,7 +286,7 @@ void FontPrevWin_Impl::CheckScript()
nScript = xBreak->getScriptType( aText, nChg );
else
break;
- } while( sal_True );
+ } while( true );
}
/*
@@ -355,7 +355,7 @@ Size FontPrevWin_Impl::CalcTextSize( OutputDevice* pWin, OutputDevice* _pPrinter
else
break;
}
- while( sal_True );
+ while( true );
nHeight -= nAscent;
nCJKHeight -= nCJKAscent;
nCTLHeight -= nCTLAscent;
@@ -416,7 +416,7 @@ void FontPrevWin_Impl::DrawPrev( OutputDevice* pWin, Printer* _pPrinter,
else
break;
}
- while( sal_True );
+ while( true );
_pPrinter->SetFont( aOldFont );
}
diff --git a/svx/source/dialog/srchdlg.cxx b/svx/source/dialog/srchdlg.cxx
index 9a0a9d3..fa315f6 100644
--- a/svx/source/dialog/srchdlg.cxx
+++ b/svx/source/dialog/srchdlg.cxx
@@ -188,7 +188,7 @@ void SearchAttrItemList::Put( const SfxItemSet& rSet )
const SfxPoolItem* pItem = aIter.GetCurItem();
sal_uInt16 nWhich;
- while ( sal_True )
+ while ( true )
{
// only test that it is available?
if( IsInvalidItem( pItem ) )
diff --git a/svx/source/form/fmshimp.cxx b/svx/source/form/fmshimp.cxx
index bfadea8..51babbc 100644
--- a/svx/source/form/fmshimp.cxx
+++ b/svx/source/form/fmshimp.cxx
@@ -2511,7 +2511,7 @@ IMPL_LINK(FmXFormShell, OnSearchContextRequest, FmSearchContext*, pfmscContextIn
m_arrRelativeGridColumn.push_back(nViewPos);
}
}
- } while (sal_False);
+ } while (false);
}
else
{
diff --git a/svx/source/xoutdev/_xoutbmp.cxx b/svx/source/xoutdev/_xoutbmp.cxx
index 09ca1d9..2018dbe 100644
--- a/svx/source/xoutdev/_xoutbmp.cxx
+++ b/svx/source/xoutdev/_xoutbmp.cxx
@@ -476,7 +476,7 @@ Polygon XOutBitmap::GetCountour( const Bitmap& rBmp, const sal_uIntPtr nFlags,
nY = nStartY2;
// diese Schleife wird immer gebreaked da hier ja min. ein Pixel ist
- while( sal_True )
+ while( true )
{
if( aBlack == pAcc->GetPixel( nY, nX ) )
{
@@ -513,7 +513,7 @@ Polygon XOutBitmap::GetCountour( const Bitmap& rBmp, const sal_uIntPtr nFlags,
nX = nStartX2;
// diese Schleife wird immer gebreaked da hier ja min. ein Pixel ist
- while( sal_True )
+ while( true )
{
if( aBlack == pAcc->GetPixel( nY, nX ) )
{
diff --git a/vcl/source/filter/ixpm/xpmread.cxx b/vcl/source/filter/ixpm/xpmread.cxx
index 0317736..472a5c6 100644
--- a/vcl/source/filter/ixpm/xpmread.cxx
+++ b/vcl/source/filter/ixpm/xpmread.cxx
@@ -344,7 +344,7 @@ sal_Bool XPMReader::ImplGetColSub( sal_uInt8* pDest )
else if ( mnParaSize > 2 ) // name must enlarge the minimum size
{
sal_uLong i = 0;
- while ( sal_True )
+ while ( true )
{
if ( pRGBTable[ i ].name == NULL )
break;
diff --git a/vcl/source/filter/wmf/winwmf.cxx b/vcl/source/filter/wmf/winwmf.cxx
index f80b1d7..a181fdf 100644
--- a/vcl/source/filter/wmf/winwmf.cxx
+++ b/vcl/source/filter/wmf/winwmf.cxx
@@ -1168,7 +1168,7 @@ void WMFReader::ReadWMF()
if( nEndPos - nStartPos )
{
- while( sal_True )
+ while( true )
{
nCurrentAction++;
nPercent = ( nPos - nStartPos ) * 100 / ( nEndPos - nStartPos );
diff --git a/xmloff/source/core/nmspmap.cxx b/xmloff/source/core/nmspmap.cxx
index b2512b4..c867818 100644
--- a/xmloff/source/core/nmspmap.cxx
+++ b/xmloff/source/core/nmspmap.cxx
@@ -88,7 +88,7 @@ sal_uInt16 SvXMLNamespaceMap::_Add( const OUString& rPrefix, const OUString &rNa
break;
nKey++;
}
- while ( sal_True );
+ while ( true );
}
::rtl::Reference<NameSpaceEntry> pEntry(new NameSpaceEntry);
pEntry->sName = rName;
More information about the Libreoffice-commits
mailing list