Replace TRUE/FALSE with boolean values true/false

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/57/head
Michele Calgaro 4 months ago
parent 4b8cb80dce
commit 5e9ef6688e
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -99,7 +99,7 @@ int src_set_ratio (SRC_STATE *state, double new_ratio) ;
int src_reset (SRC_STATE *state) ; int src_reset (SRC_STATE *state) ;
/* /*
** Return TRUE if ratio is a valid conversion ratio, FALSE ** Return true if ratio is a valid conversion ratio, false
** otherwise. ** otherwise.
*/ */

@ -166,7 +166,7 @@ K3bFLACDecoder::Private::seek_callback(FLAC__uint64 absolute_byte_offset) {
#else #else
FLAC__StreamDecoderSeekStatus FLAC__StreamDecoderSeekStatus
K3bFLACDecoder::Private::seek_callback(FLAC__uint64 absolute_byte_offset) { K3bFLACDecoder::Private::seek_callback(FLAC__uint64 absolute_byte_offset) {
if(file->at(absolute_byte_offset) == FALSE) if(file->at(absolute_byte_offset) == false)
return FLAC__STREAM_DECODER_SEEK_STATUS_ERROR; return FLAC__STREAM_DECODER_SEEK_STATUS_ERROR;
else else
return FLAC__STREAM_DECODER_SEEK_STATUS_OK; return FLAC__STREAM_DECODER_SEEK_STATUS_OK;

@ -109,7 +109,7 @@ public:
newWidth += listView()->columnWidth( i ); newWidth += listView()->columnWidth( i );
} }
// TODO: find a way to get the TRUE new width after resizing // TODO: find a way to get the true new width after resizing
// TQRect r = p->clipRegion().boundingRect(); // TQRect r = p->clipRegion().boundingRect();
// r.setWidth( newWidth ); // r.setWidth( newWidth );

@ -304,7 +304,7 @@ void K3bFileTreeComboBox::mousePressEvent( TQMouseEvent* e )
if ( e->button() != TQt::LeftButton ) if ( e->button() != TQt::LeftButton )
return; return;
if ( d->ignoreNextMouseClick ) { if ( d->ignoreNextMouseClick ) {
d->ignoreNextMouseClick = FALSE; d->ignoreNextMouseClick = false;
return; return;
} }
@ -318,7 +318,7 @@ void K3bFileTreeComboBox::mousePressEvent( TQMouseEvent* e )
if ( arrowRect.contains( e->pos() ) ) { if ( arrowRect.contains( e->pos() ) ) {
popup(); popup();
repaint( FALSE ); repaint( false );
} }
} }
@ -349,7 +349,7 @@ void K3bFileTreeComboBox::paintEvent( TQPaintEvent* )
flags |= TQStyle::Style_HasFocus; flags |= TQStyle::Style_HasFocus;
if ( width() < 5 || height() < 5 ) { if ( width() < 5 || height() < 5 ) {
qDrawShadePanel( &p, rect(), g, FALSE, 2, qDrawShadePanel( &p, rect(), g, false, 2,
&g.brush( TQColorGroup::Button ) ); &g.brush( TQColorGroup::Button ) );
return; return;
} }
@ -375,7 +375,7 @@ void K3bFileTreeComboBox::paintEvent( TQPaintEvent* )
// item->paint( &p ); // item->paint( &p );
// } // }
// } else if ( d->listBox() && d->listBox()->item( 0 ) ) { // } else if ( d->listBox() && d->listBox()->item( 0 ) ) {
p.setClipping( FALSE ); p.setClipping( false );
TQListBoxItem * item = listBox()->item( 0 ); TQListBoxItem * item = listBox()->item( 0 );
const TQPixmap *pix = item->pixmap(); const TQPixmap *pix = item->pixmap();
if ( pix ) { if ( pix ) {
@ -385,7 +385,7 @@ void K3bFileTreeComboBox::paintEvent( TQPaintEvent* )
( re.height() - pix->height() ) / 2, *pix ); ( re.height() - pix->height() ) / 2, *pix );
} }
// } // }
p.setClipping( FALSE ); p.setClipping( false );
} }

@ -644,7 +644,7 @@ void K3bJobProgressDialog::hide()
KDialog::hide(); KDialog::hide();
if ( in_loop ) { if ( in_loop ) {
in_loop = FALSE; in_loop = false;
TQApplication::eventLoop()->exitLoop(); TQApplication::eventLoop()->exitLoop();
} }
} }

@ -55,7 +55,7 @@ class K3bJobProgressDialog : public KDialog, public K3bJobHandler
K3bJobProgressDialog( TQWidget* parent = 0, K3bJobProgressDialog( TQWidget* parent = 0,
const char* name = 0, const char* name = 0,
bool showSubProgress = true, bool showSubProgress = true,
bool modal = FALSE, bool modal = false,
WFlags fl = 0 ); WFlags fl = 0 );
virtual ~K3bJobProgressDialog(); virtual ~K3bJobProgressDialog();

@ -198,7 +198,7 @@ TQString K3bPatternParser::parsePattern( const K3bCddbResultEntry& entry,
bool isIncluded; bool isIncluded;
static TQRegExp conditionrx( "^[@|!][atyegrmx](?:='.*')?\\{" ); static TQRegExp conditionrx( "^[@|!][atyegrmx](?:='.*')?\\{" );
conditionrx.setMinimal( TRUE ); conditionrx.setMinimal( true );
for( unsigned int i = 0; i < dir.length(); ++i ) { for( unsigned int i = 0; i < dir.length(); ++i ) {
@ -282,7 +282,7 @@ TQString K3bPatternParser::parsePattern( const K3bCddbResultEntry& entry,
dir.replace( offset, length, ( isIncluded ? inclusion : TQString("") ) ); dir.replace( offset, length, ( isIncluded ? inclusion : TQString("") ) );
if( isIncluded == TRUE ) if( isIncluded == true )
i -= length - inclusion.length(); i -= length - inclusion.length();
else else
i = offset - 1; // start next loop at offset i = offset - 1; // start next loop at offset

Loading…
Cancel
Save