summaryrefslogtreecommitdiffstats
path: root/kppp/accounting.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-05-03 15:55:36 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-05-08 17:13:22 +0900
commit2cab1f3059038ab001f5185c29f0791c77aeeba1 (patch)
treee294a699a78e0aef2969216fc8fc1378b83b0064 /kppp/accounting.cpp
parentb2cb25ce7dde70c48747856d22dfac03f27033e1 (diff)
downloadtdenetwork-2cab1f30.tar.gz
tdenetwork-2cab1f30.zip
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 89969dcb2142d91b295c8d18cde46e22ef118dce)
Diffstat (limited to 'kppp/accounting.cpp')
-rw-r--r--kppp/accounting.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kppp/accounting.cpp b/kppp/accounting.cpp
index 99cbd65d..4bfdcc5b 100644
--- a/kppp/accounting.cpp
+++ b/kppp/accounting.cpp
@@ -173,9 +173,9 @@ bool AccountingBase::saveCosts() {
gpppdata.setTotalCosts(val);
gpppdata.save();
- return TRUE;
+ return true;
} else
- return FALSE;
+ return false;
}
@@ -191,7 +191,7 @@ bool AccountingBase::loadCosts() {
_total = 0.0;
}
- return TRUE;
+ return true;
}
@@ -292,7 +292,7 @@ void Accounting::slotStart() {
s += ":";
s += rules.currencySymbol();
- logMessage(s, TRUE);
+ logMessage(s, true);
}
}
@@ -313,7 +313,7 @@ void Accounting::slotStop() {
stats->ibytes,
stats->obytes);
- logMessage(s, FALSE);
+ logMessage(s, false);
saveCosts();
}
}
@@ -323,7 +323,7 @@ bool Accounting::loadRuleSet(const TQString & name) {
if (name.isEmpty()) {
rules.load(""); // delete old rules
- return TRUE;
+ return true;
}
TQString d = AccountingBase::getAccountingFile(name);
@@ -335,7 +335,7 @@ bool Accounting::loadRuleSet(const TQString & name) {
return (bool)(ret == 0);
}
- return FALSE;
+ return false;
}
@@ -450,7 +450,7 @@ void ExecutableAccounting::slotStart() {
s += ":";
s += currency;
- logMessage(s, TRUE);
+ logMessage(s, true);
}
@@ -468,7 +468,7 @@ void ExecutableAccounting::slotStop() {
stats->ibytes,
stats->obytes);
- logMessage(s, FALSE);
+ logMessage(s, false);
saveCosts();
}
}