diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-05-30 14:27:29 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-06-25 16:29:01 +0900 |
commit | a7f1e6e2552d9cdbb3d76bff089db522248b9a24 (patch) | |
tree | 2e6dd07698083df817163d572443aaf6fdd26651 /tutorial/t12/cannon.cpp | |
parent | 2584dba8aabfa2db8297dcfa258d33545ed6af43 (diff) | |
download | tqt-a7f1e6e2552d9cdbb3d76bff089db522248b9a24.tar.gz tqt-a7f1e6e2552d9cdbb3d76bff089db522248b9a24.zip |
Replace TRUE/FALSE with boolean values true/false - part 1
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tutorial/t12/cannon.cpp')
-rw-r--r-- | tutorial/t12/cannon.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tutorial/t12/cannon.cpp b/tutorial/t12/cannon.cpp index 23f647233..50d2c3bd2 100644 --- a/tutorial/t12/cannon.cpp +++ b/tutorial/t12/cannon.cpp @@ -40,7 +40,7 @@ void CannonField::setAngle( int degrees ) if ( ang == degrees ) return; ang = degrees; - repaint( cannonRect(), FALSE ); + repaint( cannonRect(), false ); emit angleChanged( ang ); } @@ -69,9 +69,9 @@ void CannonField::shoot() void CannonField::newTarget() { - static bool first_time = TRUE; + static bool first_time = true; if ( first_time ) { - first_time = FALSE; + first_time = false; TQTime midnight( 0, 0, 0 ); srand( midnight.secsTo(TQTime::currentTime()) ); } |