From 66230b1cca2fa5c95886d8cf708829e4bfac2b10 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 7 Apr 2025 15:50:40 +0900 Subject: Replace TRUE/FALSE with boolean values true/false Signed-off-by: Michele Calgaro --- libksirtet/lib/mp_interface.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libksirtet/lib/mp_interface.cpp') diff --git a/libksirtet/lib/mp_interface.cpp b/libksirtet/lib/mp_interface.cpp index b38a4896..ce341c24 100644 --- a/libksirtet/lib/mp_interface.cpp +++ b/libksirtet/lib/mp_interface.cpp @@ -64,7 +64,7 @@ void MPInterface::dialog() // net meeting TQPtrList rhd; - rhd.setAutoDelete(TRUE); + rhd.setAutoDelete(true); if (cd.network) { cId id(tdeApp->name(), gameInfo.gameId); MPOptionWidget *ow = newOptionWidget(); @@ -110,8 +110,8 @@ void MPInterface::specialLocalGame(uint nbHumans, uint nbAIs) : i18n("AI %1").arg(i-nbHumans+1)); cd.rhd.bds += bd; } - cd.server = TRUE; - cd.network = FALSE; + cd.server = true; + cd.network = false; Q_ASSERT( (nbHumans+nbAIs)<=gameInfo.maxNbLocalPlayers ); Q_ASSERT( gameInfo.AIAllowed || nbAIs==0 ); @@ -255,7 +255,7 @@ void MPInterface::hostDisconnected(uint, const TQString &msg) errorBox(msg, TQString(), this); if ( !disconnected ) { // to avoid multiple calls - disconnected = TRUE; + disconnected = true; // the zero timer is used to be outside the "internal" class TQTimer::singleShot(0, this, TQ_SLOT(singleHumanSlot())); } @@ -263,7 +263,7 @@ void MPInterface::hostDisconnected(uint, const TQString &msg) void MPInterface::singleHumanSlot() { - disconnected = FALSE; + disconnected = false; singleHuman(); } -- cgit v1.2.3