summaryrefslogtreecommitdiffstats
path: root/tutorial/t12/cannon.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-05-30 14:27:29 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-06-25 16:43:08 +0900
commit35ced32e331ee29fda1642616c803637952f5b22 (patch)
treeda44726777f814e19c7ef1e43854f6a1693dd6fb /tutorial/t12/cannon.cpp
parent7dd4848d61e4c52091d6c644356c84c67536bde2 (diff)
downloadtqt-35ced32e331ee29fda1642616c803637952f5b22.tar.gz
tqt-35ced32e331ee29fda1642616c803637952f5b22.zip
Replace TRUE/FALSE with boolean values true/false - part 1
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit a7f1e6e2552d9cdbb3d76bff089db522248b9a24)
Diffstat (limited to 'tutorial/t12/cannon.cpp')
-rw-r--r--tutorial/t12/cannon.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tutorial/t12/cannon.cpp b/tutorial/t12/cannon.cpp
index f3d05ca12..5433be7cd 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()) );
}