diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-05 12:06:15 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-05 12:24:24 +0900 |
| commit | a40b1ca8095d92cbe5876207558663dcab6d1de2 (patch) | |
| tree | 539043e03a12becf6c8d61d5ddbedd1e18309e62 /kicker-applets | |
| parent | a1fb007a8776fef0131f829fbb5ff69a2a02bae6 (diff) | |
| download | tdeaddons-a40b1ca8095d92cbe5876207558663dcab6d1de2.tar.gz tdeaddons-a40b1ca8095d92cbe5876207558663dcab6d1de2.zip | |
Replace TRUE/FALSE with boolean values true/false
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kicker-applets')
| -rw-r--r-- | kicker-applets/math/mathapplet.cpp | 4 | ||||
| -rw-r--r-- | kicker-applets/math/parser.cpp | 4 | ||||
| -rw-r--r-- | kicker-applets/math/parser.h | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/kicker-applets/math/mathapplet.cpp b/kicker-applets/math/mathapplet.cpp index 5614237..ee0fb4e 100644 --- a/kicker-applets/math/mathapplet.cpp +++ b/kicker-applets/math/mathapplet.cpp @@ -139,14 +139,14 @@ void MathApplet::useDegrees() { mContextMenu->setItemChecked(0, true); mContextMenu->setItemChecked(1, false); Parser dummy; - dummy.setAngleMode(1); + dummy.setAngleMode(true); } void MathApplet::useRadians() { mContextMenu->setItemChecked(0, false); mContextMenu->setItemChecked(1, true); Parser dummy; - dummy.setAngleMode(0); + dummy.setAngleMode(false); } void MathApplet::resizeEvent(TQResizeEvent*) diff --git a/kicker-applets/math/parser.cpp b/kicker-applets/math/parser.cpp index 6dc928b..6b65b53 100644 --- a/kicker-applets/math/parser.cpp +++ b/kicker-applets/math/parser.cpp @@ -125,8 +125,8 @@ Parser::Ufkt::~Ufkt() } -void Parser::setAngleMode(int angle) -{ if(angle==0) +void Parser::setAngleMode(bool angle) +{ if (!angle) m_anglemode = 1; else m_anglemode = M_PI/180; diff --git a/kicker-applets/math/parser.h b/kicker-applets/math/parser.h index 319c470..5a7149d 100644 --- a/kicker-applets/math/parser.h +++ b/kicker-applets/math/parser.h @@ -151,8 +151,8 @@ public: void setparameter(int ix, double k) {ufkt[ix].k=k;} /// return the angletype static double anglemode(); - /// sets the angletype. TRUE is radians and FALSE degrees - void setAngleMode(int); + /// sets the angletype. true is radians and false degrees + void setAngleMode(bool); TQValueVector<Constant> constant; |
