summaryrefslogtreecommitdiffstats
path: root/kbruch/src/task.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-04-07 18:23:54 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-04-07 23:24:46 +0900
commitfd06779f93512aa68988b165260941e6d3f1ff0f (patch)
treebb06d03e494a97eae182a18562677e2e5b17bed5 /kbruch/src/task.h
parentf1a4e21e9735931cfb58943bb1a3da4353e14302 (diff)
downloadtdeedu-r14.1.4.tar.gz
tdeedu-r14.1.4.zip
Replace TRUE/FALSE with boolean values true/falser14.1.4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 35149ce0bd6a7e9a315a395291ed4b59499b63cf)
Diffstat (limited to 'kbruch/src/task.h')
-rw-r--r--kbruch/src/task.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/kbruch/src/task.h b/kbruch/src/task.h
index 57c80b86..806e11b9 100644
--- a/kbruch/src/task.h
+++ b/kbruch/src/task.h
@@ -23,10 +23,6 @@
#include <vector>
-/** important for add_sub and mul_div */
-#define YES 1
-#define NO 0
-
/** important for op_vector */
#define ADD 0
#define SUB 1
@@ -73,7 +69,7 @@ public:
/** automatically generate a new task with the given parameters */
void create_task(unsigned int pmax_md = 10, short pnr_ratios = 2,
- short padd_sub = YES, short pmul_div = NO);
+ bool padd_sub = true, bool pmul_div = false);
/** set ratio n */
void set_ratio_n(unsigned short number = 0, int numerator = 0,