summaryrefslogtreecommitdiffstats
path: root/doc/html/tutorial1-12.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/tutorial1-12.html')
-rw-r--r--doc/html/tutorial1-12.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/html/tutorial1-12.html b/doc/html/tutorial1-12.html
index 06dc2625f..886ccde8c 100644
--- a/doc/html/tutorial1-12.html
+++ b/doc/html/tutorial1-12.html
@@ -185,9 +185,9 @@ widget is invisible. TQt guarantees that no harm is done when calling
repaint() on a hidden widget.
<p> <pre> void CannonField::newTarget()
{
- static bool first_time = TRUE;
+ static bool first_time = true;
if ( first_time ) {
- first_time = FALSE;
+ first_time = false;
<a href="tqtime.html">TQTime</a> midnight( 0, 0, 0 );
<a name="x2399"></a><a name="x2398"></a> srand( midnight.<a href="tqtime.html#secsTo">secsTo</a>(TQTime::<a href="tqtime.html#currentTime">currentTime</a>()) );
}
@@ -209,7 +209,7 @@ passed since midnight as a pseudo-random value.
<p> First we create a static bool local variable. A static variable like
this one is guaranteed to keep its value between calls to the function.
<p> The <tt>if</tt> test will succeed only the first time this function is called
-because we set <tt>first_time</tt> to FALSE inside the <tt>if</tt> block.
+because we set <tt>first_time</tt> to false inside the <tt>if</tt> block.
<p> Then we create the <a href="tqtime.html">TQTime</a> object <tt>midnight</tt>, which represents the time
00:00:00. Next we fetch the number of seconds from midnight until
now and use it as a random seed. See the documentation for <a href="tqdate.html">TQDate</a>,