sal_Bool to bool

Change-Id: I8c554fb3faead41c974af9c2a89728bd0bdf5eb6
This commit is contained in:
Takeshi Abe 2013-03-04 23:11:48 +09:00
parent f348749a83
commit ce33f85ffd
45 changed files with 66 additions and 66 deletions

View File

@ -454,7 +454,7 @@ RTLFUNC(CurDir)
int nSize = _PATH_INCR; int nSize = _PATH_INCR;
char* pMem; char* pMem;
while( sal_True ) while( true )
{ {
pMem = new char[nSize]; pMem = new char[nSize];
if( !pMem ) if( !pMem )

View File

@ -111,7 +111,7 @@ void testWriter( const Reference < XComponent > & rCmp )
char pcText[1024]; char pcText[1024];
pcText[0] = 0; pcText[0] = 0;
printf( "pleast type any text\n" ); printf( "pleast type any text\n" );
while( sal_True ) while( true )
{ {
scanf( "%s" , pcText ); scanf( "%s" , pcText );

View File

@ -79,7 +79,7 @@ private:
void MyThread::run() void MyThread::run()
{ {
while ( sal_True ) while ( true )
{ {
try try
{ {

View File

@ -109,7 +109,7 @@ void MyThread::latencyTest( const Reference< XConnection > &r )
void MyThread::run() void MyThread::run()
{ {
while ( sal_True ) while ( true )
{ {
try try
{ {

View File

@ -231,7 +231,7 @@ namespace comphelper
m_pImpl->aPendingActions.reset(); m_pImpl->aPendingActions.reset();
m_pImpl->aPendingActions.wait(); m_pImpl->aPendingActions.wait();
} }
while ( sal_True ); while ( true );
} }
//........................................................................ //........................................................................

View File

@ -233,7 +233,7 @@ MQueryHelper::getByIndex( sal_uInt32 nRow )
{ {
return( m_aResults[ nRow -1 ] ); return( m_aResults[ nRow -1 ] );
} }
} while ( sal_True ); } while ( true );
} }
sal_Bool sal_Bool

View File

@ -67,7 +67,7 @@ namespace cppu_threadpool {
} }
while( sal_True ) while( true )
{ {
if( bReturnWhenNoJob ) if( bReturnWhenNoJob )
{ {

View File

@ -863,7 +863,7 @@ void TPGalleryThemeProperties::FillFilterList()
String aExtensions; String aExtensions;
int j = 0; int j = 0;
String sWildcard; String sWildcard;
while( sal_True ) while( true )
{ {
sWildcard = rFilter.GetImportWildcard( i, j++ ); sWildcard = rFilter.GetImportWildcard( i, j++ );
if ( !sWildcard.Len() ) if ( !sWildcard.Len() )
@ -938,7 +938,7 @@ void TPGalleryThemeProperties::FillFilterList()
{ {
int j = 0; int j = 0;
String sWildcard; String sWildcard;
while( sal_True ) while( true )
{ {
sWildcard = rFilter.GetImportWildcard( i, j++ ); sWildcard = rFilter.GetImportWildcard( i, j++ );
if ( !sWildcard.Len() ) if ( !sWildcard.Len() )

View File

@ -1216,7 +1216,7 @@ void SbaGridControl::StartDrag( sal_Int8 _nAction, const Point& _rPosPixel )
bHandled = sal_True; bHandled = sal_True;
} }
} }
while (sal_False); while (false);
if (!bHandled) if (!bHandled)
FmGridControl::StartDrag(_nAction, _rPosPixel); FmGridControl::StartDrag(_nAction, _rPosPixel);
@ -1448,7 +1448,7 @@ sal_Int8 SbaGridControl::AcceptDrop( const BrowserAcceptDropEvent& rEvt )
DBG_UNHANDLED_EXCEPTION(); DBG_UNHANDLED_EXCEPTION();
} }
} while (sal_False); } while (false);
if(nAction != DND_ACTION_COPY && GetEmptyRow().Is()) if(nAction != DND_ACTION_COPY && GetEmptyRow().Is())
{ {

View File

@ -478,7 +478,7 @@ void TextConvWrapper::ChangeText( const String &rNewText,
"mismatch between string length and sequence length!" ); "mismatch between string length and sequence length!" );
// find all substrings that need to be replaced (and only those) // 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 // get index in original text that matches nPos in new text
xub_StrLen nIndex; xub_StrLen nIndex;

View File

@ -2286,7 +2286,7 @@ SfxPoolItem* SvxBoxItem::Create( SvStream& rStrm, sal_uInt16 nIVersion ) const
BOX_LINE_RIGHT, BOX_LINE_BOTTOM }; BOX_LINE_RIGHT, BOX_LINE_BOTTOM };
sal_Int8 cLine; sal_Int8 cLine;
while( sal_True ) while( true )
{ {
rStrm >> cLine; rStrm >> cLine;
@ -2657,7 +2657,7 @@ SfxPoolItem* SvxBoxInfoItem::Create( SvStream& rStrm, sal_uInt16 ) const
pAttr->SetMinDist( ( cFlags & 0x04 ) != 0 ); pAttr->SetMinDist( ( cFlags & 0x04 ) != 0 );
pAttr->SetDefDist( _nDefDist ); pAttr->SetDefDist( _nDefDist );
while( sal_True ) while( true )
{ {
sal_Int8 cLine; sal_Int8 cLine;
rStrm >> cLine; rStrm >> cLine;

View File

@ -1402,7 +1402,7 @@ sal_uLong SvxAutoCorrect::AutoCorrect( SvxAutoCorrDoc& rDoc, const String& rTxt,
nRet |= ChgToEnEmDash; nRet |= ChgToEnEmDash;
} }
} while( sal_False ); } while( false );
if( nRet ) if( nRet )
{ {

View File

@ -341,7 +341,7 @@ void SvxBoundArgs::Calc( const PolyPolygon& rPoly )
if( nCount > 1 ) if( nCount > 1 )
{ {
sal_uInt16 nIdx = 1; sal_uInt16 nIdx = 1;
while( sal_True ) while( true )
{ {
const Point& rLast = rPol[ nIdx - 1 ]; const Point& rLast = rPol[ nIdx - 1 ];
if( nIdx == nCount ) if( nIdx == nCount )

View File

@ -270,7 +270,7 @@ void SvxRTFParser::ReadAttr( int nToken, SfxItemSet* pSet )
pAkt->SetStartPos( *pInsPos ); pAkt->SetStartPos( *pInsPos );
pSet = &pAkt->aAttrSet; pSet = &pAkt->aAttrSet;
} while( sal_False ); } while( false );
switch( nToken ) switch( nToken )
{ {
@ -1194,7 +1194,7 @@ ATTR_SETEMPHASIS:
&aColor, nDist, eSL ) ); &aColor, nDist, eSL ) );
bSkip = sal_False; bSkip = sal_False;
} while( sal_False ); } while( false );
if( bSkip ) if( bSkip )
SkipGroup(); // at the end of the group SkipGroup(); // at the end of the group
@ -1891,7 +1891,7 @@ void SvxRTFParser::SetDefault( int nToken, int nValue )
{ {
SfxItemIter aIter( aTmp ); SfxItemIter aIter( aTmp );
const SfxPoolItem* pItem = aIter.GetCurItem(); const SfxPoolItem* pItem = aIter.GetCurItem();
while( sal_True ) while( true )
{ {
pAttrPool->SetPoolDefaultItem( *pItem ); pAttrPool->SetPoolDefaultItem( *pItem );
if( aIter.IsAtEnd() ) if( aIter.IsAtEnd() )

View File

@ -907,7 +907,7 @@ void SvxRTFParser::AttrGroupEnd() // process the current, delete from Stack
{ {
SfxItemIter aIter( pOld->aAttrSet ); SfxItemIter aIter( pOld->aAttrSet );
const SfxPoolItem* pItem = aIter.GetCurItem(), *pGet; const SfxPoolItem* pItem = aIter.GetCurItem(), *pGet;
while( sal_True ) while( true )
{ {
if( SFX_ITEM_SET == pAkt->aAttrSet.GetItemState( if( SFX_ITEM_SET == pAkt->aAttrSet.GetItemState(
pItem->Which(), sal_False, &pGet ) && 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 // at the beginning of a paragraph? Move back one position
MovePos( sal_True ); MovePos( sal_True );
} while( sal_False ); } while( false );
if( pOld ) if( pOld )
delete pOld; delete pOld;
@ -1290,7 +1290,7 @@ void SvxRTFItemStackType::Compress( const SvxRTFParser& rParser )
if( aIter.IsAtEnd() ) if( aIter.IsAtEnd() )
break; break;
aIter.NextItem(); aIter.NextItem();
} while( sal_True ); } while( true );
if( !aMrgSet.Count() ) if( !aMrgSet.Count() )
return; return;
@ -1337,7 +1337,7 @@ void SvxRTFItemStackType::SetRTFDefaults( const SfxItemSet& rDefaults )
if( aIter.IsAtEnd() ) if( aIter.IsAtEnd() )
break; break;
aIter.NextItem(); aIter.NextItem();
} while( sal_True ); } while( true );
} }
} }

View File

@ -1713,7 +1713,7 @@ void PSWriter::ImplBmp( Bitmap* pBitmap, Bitmap* pMaskBitmap, const Point & rPoi
if ( pMaskBitmap ) if ( pMaskBitmap )
{ {
bDoTrans = sal_True; bDoTrans = sal_True;
while (sal_True) while (true)
{ {
if ( mnLevel == 1 ) if ( mnLevel == 1 )
{ {

View File

@ -218,7 +218,7 @@ void OComponentEventThread::run()
m_aCond.wait(); m_aCond.wait();
} }
} }
while( sal_True ); while( true );
} }
//......................................................................... //.........................................................................

View File

@ -573,7 +573,7 @@ OUStringList StorageHolder::impl_st_parsePath(const ::rtl::OUString& sPath)
{ {
OUStringList lToken; OUStringList lToken;
sal_Int32 i = 0; sal_Int32 i = 0;
while (sal_True) while (true)
{ {
::rtl::OUString sToken = sPath.getToken(0, PATH_SEPERATOR_UNICODE, i); ::rtl::OUString sToken = sPath.getToken(0, PATH_SEPERATOR_UNICODE, i);
if (i < 0) if (i < 0)

View File

@ -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 .-)"); OSL_ENSURE(sTarget.isEmpty(), "CloseDispatch used for unexpected target. Magic things will happen now .-)");
css::uno::Reference< css::frame::XFrame > xTarget = xFrame; css::uno::Reference< css::frame::XFrame > xTarget = xFrame;
while(sal_True) while(true)
{ {
// a) top frames wil be closed // a) top frames wil be closed
if (xTarget->isTop()) if (xTarget->isTop())

View File

@ -299,7 +299,7 @@ sal_Int32 OTextInputStream::implReadNext()
sal_Size nSrcCvtBytes = 0; sal_Size nSrcCvtBytes = 0;
sal_Size nTargetCount = 0; sal_Size nTargetCount = 0;
sal_Size nSourceCount = 0; sal_Size nSourceCount = 0;
while( sal_True ) while( true )
{ {
const sal_Int8 *pbSource = mSeqSource.getConstArray(); const sal_Int8 *pbSource = mSeqSource.getConstArray();

View File

@ -127,7 +127,7 @@ Sequence<sal_Int8> OTextOutputStream::implConvert( const OUString& rSource )
Sequence<sal_Int8> seqText( nSeqSize ); Sequence<sal_Int8> seqText( nSeqSize );
sal_Char *pTarget = (sal_Char *) seqText.getArray(); sal_Char *pTarget = (sal_Char *) seqText.getArray();
while( sal_True ) while( true )
{ {
nTargetCount += rtl_convertUnicodeToText( nTargetCount += rtl_convertUnicodeToText(
mConvUnicode2Text, mConvUnicode2Text,

View File

@ -1104,7 +1104,7 @@ void OObjectOutputStream::connectToMarkable(void)
// find the markable stream ! // find the markable stream !
Reference< XInterface > rTry(m_output); Reference< XInterface > rTry(m_output);
while( sal_True ) { while( true ) {
if( ! rTry.is() ) if( ! rTry.is() )
{ {
throw NotConnectedException(); throw NotConnectedException();
@ -1411,7 +1411,7 @@ void OObjectInputStream::connectToMarkable()
// find the markable stream ! // find the markable stream !
Reference< XInterface > rTry(m_input); Reference< XInterface > rTry(m_input);
while( sal_True ) { while( true ) {
if( ! rTry.is() ) if( ! rTry.is() )
{ {
throw NotConnectedException( ); throw NotConnectedException( );

View File

@ -148,7 +148,7 @@ OPipeImpl::~OPipeImpl()
sal_Int32 OPipeImpl::readBytes(Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead) sal_Int32 OPipeImpl::readBytes(Sequence< sal_Int8 >& aData, sal_Int32 nBytesToRead)
throw( NotConnectedException, BufferSizeExceededException,RuntimeException ) throw( NotConnectedException, BufferSizeExceededException,RuntimeException )
{ {
while( sal_True ) while( true )
{ {
{ // start guarded section { // start guarded section
MutexGuard guard( m_mutexAccess ); MutexGuard guard( m_mutexAccess );
@ -188,7 +188,7 @@ sal_Int32 OPipeImpl::readSomeBytes(Sequence< sal_Int8 >& aData, sal_Int32 nMaxBy
BufferSizeExceededException, BufferSizeExceededException,
RuntimeException ) RuntimeException )
{ {
while( sal_True ) { while( true ) {
{ {
MutexGuard guard( m_mutexAccess ); MutexGuard guard( m_mutexAccess );
if( m_bInputStreamClosed ) if( m_bInputStreamClosed )

View File

@ -224,7 +224,7 @@ sal_Int32 Decompression::explode()
m_nOutputBufferPos = 0; m_nOutputBufferPos = 0;
/* Now, a bit stream follows, which is decoded as described below: */ /* Now, a bit stream follows, which is decoded as described below: */
/* The algorithm terminates as soon as it runs out of bits. */ /* 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 ...) // read 1 bit (take bits from the lowest value (LSB) to the MSB i.e. bit 0, bit 1 etc ...)
sal_uInt32 iBit; sal_uInt32 iBit;

View File

@ -588,7 +588,7 @@ void LwpPara::RegisterStyle()
} }
bHeading = pNumbering->IsHeading(); bHeading = pNumbering->IsHeading();
while(sal_True) while(true)
{ {
/*// When we hit the hint paragraph, we can stop and check the hint. /*// When we hit the hint paragraph, we can stop and check the hint.
if (qNumberHint && (qPara == qNumberHint->GetPara()) && if (qNumberHint && (qPara == qNumberHint->GetPara()) &&

View File

@ -83,7 +83,7 @@ sal_Int32 TextRun::insertAt(
aTextCharacterProps.maLatinFont.getFontData( aLatinFontName, nLatinFontPitch, nLatinFontFamily, rFilterBase ); aTextCharacterProps.maLatinFont.getFontData( aLatinFontName, nLatinFontPitch, nLatinFontFamily, rFilterBase );
sal_Int32 nIndex = 0; sal_Int32 nIndex = 0;
while ( sal_True ) while ( true )
{ {
sal_Int32 nCount = 0; sal_Int32 nCount = 0;
sal_Bool bSymbol = ( getText()[ nIndex ] & 0xff00 ) == 0xf000; sal_Bool bSymbol = ( getText()[ nIndex ] & 0xff00 ) == 0xf000;

View File

@ -110,7 +110,7 @@ sal_uInt32 GetNumber(){
int MakeToken( YYSTYPE * pTokenVal ){ int MakeToken( YYSTYPE * pTokenVal ){
int c1; int c1;
while( sal_True ){ // Kommentare und Leerzeichen ueberlesen while( true ){ // Kommentare und Leerzeichen ueberlesen
while( isspace( c ) ) while( isspace( c ) )
c = pFI->GetFastChar(); c = pFI->GetFastChar();
if( '/' == c ){ if( '/' == c ){

View File

@ -53,7 +53,7 @@ sal_Int32 XMLFile2UTFConverter::readAndConvert( Sequence<sal_Int8> &seq , sal_In
sal_Int32 nRead; sal_Int32 nRead;
Sequence< sal_Int8 > seqStart; Sequence< sal_Int8 > seqStart;
while( sal_True ) while( true )
{ {
nRead = m_in->readSomeBytes( seq , nMaxToRead ); nRead = m_in->readSomeBytes( seq , nMaxToRead );
@ -409,7 +409,7 @@ Sequence<sal_Unicode> Text2UnicodeConverter::convert( const Sequence<sal_Int8> &
m_seqSource = Sequence< sal_Int8 >(); m_seqSource = Sequence< sal_Int8 >();
} }
while( sal_True ) { while( true ) {
/* All invalid characters are transformed to the unicode undefined char */ /* All invalid characters are transformed to the unicode undefined char */
nTargetCount += rtl_convertTextToUnicode( nTargetCount += rtl_convertTextToUnicode(
@ -509,7 +509,7 @@ Sequence<sal_Int8> Unicode2TextConverter::convert(const sal_Unicode *puSource ,
Sequence<sal_Int8> seqText( nSeqSize ); Sequence<sal_Int8> seqText( nSeqSize );
sal_Char *pTarget = (sal_Char *) seqText.getArray(); sal_Char *pTarget = (sal_Char *) seqText.getArray();
while( sal_True ) { while( true ) {
nTargetCount += rtl_convertUnicodeToText( nTargetCount += rtl_convertUnicodeToText(
m_convUnicode2Text, m_convUnicode2Text,

View File

@ -669,7 +669,7 @@ void OSaxParserTest::testFile( const Reference < XParser > & rParser )
Any any; Any any;
any <<= e; any <<= e;
while(sal_True) { while(true) {
SAXParseException *pEx; SAXParseException *pEx;
if( any.getValueType() == getCppuType( &e ) ) { if( any.getValueType() == getCppuType( &e ) ) {
pEx = ( SAXParseException * ) any.getValue(); pEx = ( SAXParseException * ) any.getValue();
@ -736,7 +736,7 @@ void OSaxParserTest::testPerformance( const Reference < XParser > & rParser )
catch( SAXParseException &e ) { catch( SAXParseException &e ) {
Any any; Any any;
any <<= e; any <<= e;
while(sal_True) { while(true) {
if( any.getValueType() == getCppuType( &e ) ) { if( any.getValueType() == getCppuType( &e ) ) {
SAXParseException ex; SAXParseException ex;
any >>= ex; any >>= ex;

View File

@ -246,7 +246,7 @@ void PPTWriterBase::exportPPT( const std::vector< com::sun::star::beans::Propert
sal_Bool PPTWriterBase::InitSOIface() sal_Bool PPTWriterBase::InitSOIface()
{ {
while( sal_True ) while( true )
{ {
mXDrawPagesSupplier = Reference< XDrawPagesSupplier >( mXModel, UNO_QUERY ); mXDrawPagesSupplier = Reference< XDrawPagesSupplier >( mXModel, UNO_QUERY );
if ( !mXDrawPagesSupplier.is() ) if ( !mXDrawPagesSupplier.is() )
@ -275,7 +275,7 @@ sal_Bool PPTWriterBase::InitSOIface()
sal_Bool PPTWriterBase::GetPageByIndex( sal_uInt32 nIndex, PageType ePageType ) sal_Bool PPTWriterBase::GetPageByIndex( sal_uInt32 nIndex, PageType ePageType )
{ {
while( sal_True ) while( true )
{ {
if ( ePageType != meLatestPageType ) if ( ePageType != meLatestPageType )
{ {
@ -730,7 +730,7 @@ Rectangle PPTWriterBase::MapRectangle( const awt::Rectangle& rRect )
sal_Bool PPTWriterBase::GetShapeByIndex( sal_uInt32 nIndex, sal_Bool bGroup ) sal_Bool PPTWriterBase::GetShapeByIndex( sal_uInt32 nIndex, sal_Bool bGroup )
{ {
while(sal_True) while(true)
{ {
if ( ( bGroup == sal_False ) || ( GetCurrentGroupLevel() == 0 ) ) if ( ( bGroup == sal_False ) || ( GetCurrentGroupLevel() == 0 ) )
{ {

View File

@ -1499,7 +1499,7 @@ void ImplSdPPTImport::ImportPageEffect( SdPage* pPage, const sal_Bool bNewAnimat
sal_Bool bTryTwice = ( eAktPageKind == PPT_SLIDEPAGE ); sal_Bool bTryTwice = ( eAktPageKind == PPT_SLIDEPAGE );
sal_Bool bSSSlideInfoAtom = sal_False; sal_Bool bSSSlideInfoAtom = sal_False;
while ( sal_True ) while ( true )
{ {
while ( ( rStCtrl.GetError() == 0 ) && ( rStCtrl.Tell() < nPageRecEnd ) ) 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 ) ) if ( maShapeRecords.SeekToContent( rSt, DFF_msofbtClientData, SEEK_FROM_CURRENT_AND_RESTART ) )
{ {
DffRecordHeader& rHdClientData = *maShapeRecords.Current(); DffRecordHeader& rHdClientData = *maShapeRecords.Current();
while( sal_True ) while( true )
{ {
sal_uInt32 nClientDataLen = rHdClientData.GetRecEndFilePos(); sal_uInt32 nClientDataLen = rHdClientData.GetRecEndFilePos();
DffRecordHeader aHd; DffRecordHeader aHd;

View File

@ -442,7 +442,7 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq )
{ {
} }
} }
while( sal_True ); while( true );
sal_Bool bOk = ( n == 0); sal_Bool bOk = ( n == 0);
rReq.SetReturnValue( SfxBoolItem( 0, bOk ) ); rReq.SetReturnValue( SfxBoolItem( 0, bOk ) );

View File

@ -1505,7 +1505,7 @@ void SfxHelpWindow_Impl::loadHelpContent(const ::rtl::OUString& sHelpURL, sal_Bo
if ( !IsWait() ) if ( !IsWait() )
EnterWait(); EnterWait();
sal_Bool bSuccess = sal_False; sal_Bool bSuccess = sal_False;
// TODO implement locale fallback ... see below while(sal_True) // TODO implement locale fallback ... see below while(true)
{ {
try try
{ {

View File

@ -1879,7 +1879,7 @@ void FileDialogHelper_Impl::addGraphicFilter()
{ {
j = 0; j = 0;
String sWildcard; String sWildcard;
while( sal_True ) while( true )
{ {
sWildcard = mpGraphicFilter->GetImportWildcard( i, j++ ); sWildcard = mpGraphicFilter->GetImportWildcard( i, j++ );
if ( !sWildcard.Len() ) if ( !sWildcard.Len() )
@ -1919,7 +1919,7 @@ void FileDialogHelper_Impl::addGraphicFilter()
String aExt; String aExt;
j = 0; j = 0;
String sWildcard; String sWildcard;
while( sal_True ) while( true )
{ {
sWildcard = mpGraphicFilter->GetImportWildcard( i, j++ ); sWildcard = mpGraphicFilter->GetImportWildcard( i, j++ );
if ( !sWildcard.Len() ) if ( !sWildcard.Len() )

View File

@ -195,7 +195,7 @@ SfxMiniRecordReader::SfxMiniRecordReader
sal_uInt32 nStartPos = pStream->Tell(); sal_uInt32 nStartPos = pStream->Tell();
// passenden Record suchen // passenden Record suchen
while(sal_True) while(true)
{ {
// Header lesen // Header lesen
DBG( DbgOutf( "SfxFileRec: searching record at %ul", pStream->Tell() ) ); DBG( DbgOutf( "SfxFileRec: searching record at %ul", pStream->Tell() ) );

View File

@ -1111,7 +1111,7 @@ void SfxItemSet::Intersect( const SfxItemSet& rSet )
{ {
SfxItemIter aIter( *this ); SfxItemIter aIter( *this );
const SfxPoolItem* pItem = aIter.GetCurItem(); const SfxPoolItem* pItem = aIter.GetCurItem();
while( sal_True ) while( true )
{ {
sal_uInt16 nWhich = IsInvalidItem( pItem ) sal_uInt16 nWhich = IsInvalidItem( pItem )
? GetWhichByPos( aIter.GetCurPos() ) ? GetWhichByPos( aIter.GetCurPos() )
@ -1182,7 +1182,7 @@ void SfxItemSet::Differentiate( const SfxItemSet& rSet )
{ {
SfxItemIter aIter( *this ); SfxItemIter aIter( *this );
const SfxPoolItem* pItem = aIter.GetCurItem(); const SfxPoolItem* pItem = aIter.GetCurItem();
while( sal_True ) while( true )
{ {
sal_uInt16 nWhich = IsInvalidItem( pItem ) sal_uInt16 nWhich = IsInvalidItem( pItem )
? GetWhichByPos( aIter.GetCurPos() ) ? GetWhichByPos( aIter.GetCurPos() )

View File

@ -882,7 +882,7 @@ void SvTreeListBox::FillEntryPath( SvTreeListEntry* pEntry, ::std::deque< sal_In
if ( pEntry ) if ( pEntry )
{ {
SvTreeListEntry* pParentEntry = GetParent( pEntry ); SvTreeListEntry* pParentEntry = GetParent( pEntry );
while ( sal_True ) while ( true )
{ {
sal_uLong i, nCount = GetLevelChildCount( pParentEntry ); sal_uLong i, nCount = GetLevelChildCount( pParentEntry );
for ( i = 0; i < nCount; ++i ) for ( i = 0; i < nCount; ++i )

View File

@ -90,7 +90,7 @@ short TabDialog4Recovery::Execute()
Show(); Show();
m_pActualPage = m_lTabPages.begin(); m_pActualPage = m_lTabPages.begin();
while(sal_True) while(true)
{ {
IExtendedTabPage* pPage = *m_pActualPage; IExtendedTabPage* pPage = *m_pActualPage;
SetViewWindow(pPage); SetViewWindow(pPage);

View File

@ -286,7 +286,7 @@ void FontPrevWin_Impl::CheckScript()
nScript = xBreak->getScriptType( aText, nChg ); nScript = xBreak->getScriptType( aText, nChg );
else else
break; break;
} while( sal_True ); } while( true );
} }
/* /*
@ -355,7 +355,7 @@ Size FontPrevWin_Impl::CalcTextSize( OutputDevice* pWin, OutputDevice* _pPrinter
else else
break; break;
} }
while( sal_True ); while( true );
nHeight -= nAscent; nHeight -= nAscent;
nCJKHeight -= nCJKAscent; nCJKHeight -= nCJKAscent;
nCTLHeight -= nCTLAscent; nCTLHeight -= nCTLAscent;
@ -416,7 +416,7 @@ void FontPrevWin_Impl::DrawPrev( OutputDevice* pWin, Printer* _pPrinter,
else else
break; break;
} }
while( sal_True ); while( true );
_pPrinter->SetFont( aOldFont ); _pPrinter->SetFont( aOldFont );
} }

View File

@ -188,7 +188,7 @@ void SearchAttrItemList::Put( const SfxItemSet& rSet )
const SfxPoolItem* pItem = aIter.GetCurItem(); const SfxPoolItem* pItem = aIter.GetCurItem();
sal_uInt16 nWhich; sal_uInt16 nWhich;
while ( sal_True ) while ( true )
{ {
// only test that it is available? // only test that it is available?
if( IsInvalidItem( pItem ) ) if( IsInvalidItem( pItem ) )

View File

@ -2511,7 +2511,7 @@ IMPL_LINK(FmXFormShell, OnSearchContextRequest, FmSearchContext*, pfmscContextIn
m_arrRelativeGridColumn.push_back(nViewPos); m_arrRelativeGridColumn.push_back(nViewPos);
} }
} }
} while (sal_False); } while (false);
} }
else else
{ {

View File

@ -476,7 +476,7 @@ Polygon XOutBitmap::GetCountour( const Bitmap& rBmp, const sal_uIntPtr nFlags,
nY = nStartY2; nY = nStartY2;
// diese Schleife wird immer gebreaked da hier ja min. ein Pixel ist // diese Schleife wird immer gebreaked da hier ja min. ein Pixel ist
while( sal_True ) while( true )
{ {
if( aBlack == pAcc->GetPixel( nY, nX ) ) if( aBlack == pAcc->GetPixel( nY, nX ) )
{ {
@ -513,7 +513,7 @@ Polygon XOutBitmap::GetCountour( const Bitmap& rBmp, const sal_uIntPtr nFlags,
nX = nStartX2; nX = nStartX2;
// diese Schleife wird immer gebreaked da hier ja min. ein Pixel ist // diese Schleife wird immer gebreaked da hier ja min. ein Pixel ist
while( sal_True ) while( true )
{ {
if( aBlack == pAcc->GetPixel( nY, nX ) ) if( aBlack == pAcc->GetPixel( nY, nX ) )
{ {

View File

@ -344,7 +344,7 @@ sal_Bool XPMReader::ImplGetColSub( sal_uInt8* pDest )
else if ( mnParaSize > 2 ) // name must enlarge the minimum size else if ( mnParaSize > 2 ) // name must enlarge the minimum size
{ {
sal_uLong i = 0; sal_uLong i = 0;
while ( sal_True ) while ( true )
{ {
if ( pRGBTable[ i ].name == NULL ) if ( pRGBTable[ i ].name == NULL )
break; break;

View File

@ -1168,7 +1168,7 @@ void WMFReader::ReadWMF()
if( nEndPos - nStartPos ) if( nEndPos - nStartPos )
{ {
while( sal_True ) while( true )
{ {
nCurrentAction++; nCurrentAction++;
nPercent = ( nPos - nStartPos ) * 100 / ( nEndPos - nStartPos ); nPercent = ( nPos - nStartPos ) * 100 / ( nEndPos - nStartPos );

View File

@ -88,7 +88,7 @@ sal_uInt16 SvXMLNamespaceMap::_Add( const OUString& rPrefix, const OUString &rNa
break; break;
nKey++; nKey++;
} }
while ( sal_True ); while ( true );
} }
::rtl::Reference<NameSpaceEntry> pEntry(new NameSpaceEntry); ::rtl::Reference<NameSpaceEntry> pEntry(new NameSpaceEntry);
pEntry->sName = rName; pEntry->sName = rName;