From 4d495175043c399fdca6e1bb4c74ef176fc76fb4 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 6 Aug 2025 11:29:57 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 4 Signed-off-by: Michele Calgaro --- doc/html/life-example.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'doc/html/life-example.html') diff --git a/doc/html/life-example.html b/doc/html/life-example.html index 007905bcd..9cfa6a196 100644 --- a/doc/html/life-example.html +++ b/doc/html/life-example.html @@ -141,14 +141,14 @@ void LifeWidget::clear() for ( int t = 0; t < 2; t++ ) for ( int i = 0; i < MAXSIZE + 2; i++ ) for ( int j = 0; j < MAXSIZE + 2; j++ ) - cells[t][i][j] = FALSE; + cells[t][i][j] = false; repaint(); } // We assume that the size will never be beyond the maximum size set -// this is not in general TRUE, but in practice it's good enough for +// this is not in general true, but in practice it's good enough for // this program void LifeWidget::resizeEvent( TQResizeEvent * e ) @@ -162,8 +162,8 @@ void LifeWidget::setPoint( int i, int j ) { if ( i < 1 || i > maxi || j < 1 || j > maxi ) return; - cells[current][i][j] = TRUE; - repaint( index2pos(i), index2pos(j), SCALE, SCALE, FALSE ); + cells[current][i][j] = true; + repaint( index2pos(i), index2pos(j), SCALE, SCALE, false ); } @@ -206,7 +206,7 @@ void LifeWidget::nextGeneration() } } current = !current; - repaint( FALSE ); // repaint without erase + repaint( false ); // repaint without erase } -- cgit v1.2.3