summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2026-01-06 00:19:46 +0100
committerSlávek Banko <slavek.banko@axis.cz>2026-01-06 00:28:14 +0100
commit572b6227417225ad595cb9768025001d9faa7314 (patch)
treed42fb5f570f691dd0ed19d0b1cb88288b085e2b4
parent53cc18a718986fece2790ef71e87a1a16bbe3c23 (diff)
downloadtdemultimedia-master.tar.gz
tdemultimedia-master.zip
Replace TRUE/FALSE with boolean values true/false.HEADmaster
Finishing the remaining renames from #97. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--arts/builder/qttableview.cpp34
-rw-r--r--mpeglib/lib/decoder/tplayPlugin.cpp30
-rw-r--r--mpeglib/lib/util/audio/audioIO_BeOS.cpp4
3 files changed, 34 insertions, 34 deletions
diff --git a/arts/builder/qttableview.cpp b/arts/builder/qttableview.cpp
index 827b96d2..5ede7ccd 100644
--- a/arts/builder/qttableview.cpp
+++ b/arts/builder/qttableview.cpp
@@ -156,13 +156,13 @@ QtTableView::QtTableView( TQWidget *parent, const char *name, WFlags f )
vScrollBar = hScrollBar = 0; // no scroll bars
cornerSquare = 0;
sbDirty = 0;
- eraseInPaint = FALSE;
- verSliding = FALSE;
- verSnappingOff = FALSE;
- horSliding = FALSE;
- horSnappingOff = FALSE;
- coveringCornerSquare = FALSE;
- inSbUpdate = FALSE;
+ eraseInPaint = false;
+ verSliding = false;
+ verSnappingOff = false;
+ horSliding = false;
+ horSnappingOff = false;
+ coveringCornerSquare = false;
+ inSbUpdate = false;
}
/*!
@@ -243,9 +243,9 @@ void QtTableView::repaint( int x, int y, int w, int h, bool erase )
return; // nothing to do
TQPaintEvent e( r );
if ( erase && backgroundMode() != NoBackground )
- eraseInPaint = TRUE; // erase when painting
+ eraseInPaint = true; // erase when painting
paintEvent( &e );
- eraseInPaint = FALSE;
+ eraseInPaint = false;
}
/*!
@@ -1136,9 +1136,9 @@ void QtTableView::snapToGrid( bool horizontal, bool vertical )
void QtTableView::horSbValue( int val )
{
if ( horSliding ) {
- horSliding = FALSE;
+ horSliding = false;
if ( horSnappingOff ) {
- horSnappingOff = FALSE;
+ horSnappingOff = false;
tFlags |= Tbl_snapToHGrid;
}
}
@@ -1190,9 +1190,9 @@ void QtTableView::horSbSlidingDone( )
void QtTableView::verSbValue( int val )
{
if ( verSliding ) {
- verSliding = FALSE;
+ verSliding = false;
if ( verSnappingOff ) {
- verSnappingOff = FALSE;
+ verSnappingOff = false;
tFlags |= Tbl_snapToVGrid;
}
}
@@ -1963,7 +1963,7 @@ void QtTableView::updateScrollBars( uint f )
sbDirty = sbDirty | f;
if ( inSbUpdate )
return;
- inSbUpdate = TRUE;
+ inSbUpdate = true;
if ( testTableFlags(Tbl_autoHScrollBar) && (sbDirty & horRange) ||
testTableFlags(Tbl_autoVScrollBar) && (sbDirty & verRange) )
@@ -1971,7 +1971,7 @@ void QtTableView::updateScrollBars( uint f )
doAutoScrollBars(); // turn scroll bars on/off if needed
if ( !autoUpdate() ) {
- inSbUpdate = FALSE;
+ inSbUpdate = false;
return;
}
if ( yOffset() > 0 && testTableFlags( Tbl_autoVScrollBar ) &&
@@ -1983,7 +1983,7 @@ void QtTableView::updateScrollBars( uint f )
setXOffset( 0 );
}
if ( !isVisible() ) {
- inSbUpdate = FALSE;
+ inSbUpdate = false;
return;
}
@@ -2040,7 +2040,7 @@ void QtTableView::updateScrollBars( uint f )
maxViewY() + frameWidth() + 1 );
sbDirty = 0;
- inSbUpdate = FALSE;
+ inSbUpdate = false;
}
diff --git a/mpeglib/lib/decoder/tplayPlugin.cpp b/mpeglib/lib/decoder/tplayPlugin.cpp
index 150b1ba2..2110cdcf 100644
--- a/mpeglib/lib/decoder/tplayPlugin.cpp
+++ b/mpeglib/lib/decoder/tplayPlugin.cpp
@@ -23,18 +23,18 @@ TplayPlugin::TplayPlugin() {
info=new info_struct();
info->progname = NULL;
- info->loop = FALSE;
- info->in_seconds = FALSE;
+ info->loop = false;
+ info->in_seconds = false;
info->speed = DEFAULT_SPEED;
info->bits = DEFAULT_BITS;
info->channels = DEFAULT_CHANNELS;
info->buffer_size = BUFFER_SIZE;
- info->show_usage = FALSE;
- info->swap = FALSE;
- info->forceraw = FALSE;
- info->force = FALSE;
+ info->show_usage = false;
+ info->swap = false;
+ info->forceraw = false;
+ info->force = false;
info->device = NULL;
- info->verbose = FALSE;
+ info->verbose = false;
info->optind = 0;
info->buffer = NULL;
info->firstblock = NULL;
@@ -43,10 +43,10 @@ TplayPlugin::TplayPlugin() {
info->writeblock = 0;
info->readcount = 0;
info->writecount = 0;
- info->alldone = FALSE;
- info->overflow = FALSE;
- info->underflow = FALSE;
- info->audioset = FALSE;
+ info->alldone = false;
+ info->overflow = false;
+ info->underflow = false;
+ info->audioset = false;
info->headerskip = 0;
info->blocksize = 4096;
info->bytes_on_last_block = 0;
@@ -88,9 +88,9 @@ void TplayPlugin::decoder_loop() {
read_header();
if (info->channels == 1)
- stereo = FALSE;
+ stereo = false;
else
- stereo = TRUE;
+ stereo = true;
info->number_of_blocks = 0;
bufferp = info->buffer;
@@ -127,7 +127,7 @@ void TplayPlugin::decoder_loop() {
}
if (bytesread < info->blocksize) {
- info->alldone = TRUE;
+ info->alldone = true;
}
break;
@@ -211,7 +211,7 @@ void TplayPlugin::read_header() {
swap_block(bufferp, bytesread);
if (bytesread < info->blocksize) {
- info->alldone = TRUE;
+ info->alldone = true;
info->bytes_on_last_block = bytesread;
return;
}
diff --git a/mpeglib/lib/util/audio/audioIO_BeOS.cpp b/mpeglib/lib/util/audio/audioIO_BeOS.cpp
index 3c221f0e..80a1c638 100644
--- a/mpeglib/lib/util/audio/audioIO_BeOS.cpp
+++ b/mpeglib/lib/util/audio/audioIO_BeOS.cpp
@@ -175,7 +175,7 @@ void audioInit(int sampleSize,int frequency, int stereo)
// Enter the stream
- the_sub->EnterStream(NULL, TRUE, NULL, stream_func, NULL, TRUE);
+ the_sub->EnterStream(NULL, true, NULL, stream_func, NULL, true);
}
@@ -189,7 +189,7 @@ void audioSetVolume(int volume)
void audioClose()
{
- the_sub->ExitStream(TRUE);
+ the_sub->ExitStream(true);
the_sub->Unsubscribe();
delete_sem(ok_to_read);