diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-08-06 11:29:57 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-08-06 11:29:57 +0900 |
commit | dcce5b1f2c449ed9a02b1752e0d74f147a83d07d (patch) | |
tree | d57fe27457a96451f1a67e2a2db268a441d917fc /doc/html/life-example.html | |
parent | 649c4c61a1f1f479f4532b196f68df476cef2680 (diff) | |
download | tqt-rename/true-false-4.tar.gz tqt-rename/true-false-4.zip |
Replace TRUE/FALSE with boolean values true/false - part 4rename/true-false-4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/life-example.html')
-rw-r--r-- | doc/html/life-example.html | 10 |
1 files changed, 5 insertions, 5 deletions
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 <a name="f518"></a>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; <a href="tqwidget.html#repaint">repaint</a>(); } // 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 <a name="x1889"></a>void LifeWidget::<a href="tqframe.html#resizeEvent">resizeEvent</a>( <a href="tqresizeevent.html">TQResizeEvent</a> * e ) @@ -162,8 +162,8 @@ void <a name="f519"></a>LifeWidget::setPoint( int i, int j ) { if ( i < 1 || i > maxi || j < 1 || j > maxi ) return; - cells[current][i][j] = TRUE; - <a href="tqwidget.html#repaint">repaint</a>( index2pos(i), index2pos(j), SCALE, SCALE, FALSE ); + cells[current][i][j] = true; + <a href="tqwidget.html#repaint">repaint</a>( index2pos(i), index2pos(j), SCALE, SCALE, false ); } @@ -206,7 +206,7 @@ void <a name="f521"></a>LifeWidget::nextGeneration() } } current = !current; - <a href="tqwidget.html#repaint">repaint</a>( FALSE ); // repaint without erase + <a href="tqwidget.html#repaint">repaint</a>( false ); // repaint without erase } |