diff options
author | Timothy Pearson <[email protected]> | 2011-12-19 11:34:38 -0600 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2012-07-29 19:24:39 +0200 |
commit | 2d29e200b6e2e416090d85eac13a3788c3f142a7 (patch) | |
tree | dca9426fddfbf8a905f01cbdcff7d7ed31a6cac9 /src/node.cpp | |
parent | 87b7ae7ab924e13579d5a30e6c1544cd2f8a8cfb (diff) | |
download | abakus-2d29e200b6e2e416090d85eac13a3788c3f142a7.tar.gz abakus-2d29e200b6e2e416090d85eac13a3788c3f142a7.zip |
Remove additional unneeded tq method conversions
(cherry picked from commit c9113d74fbb7e1e6b063915a0f6ac4a8a080b631)
Diffstat (limited to 'src/node.cpp')
-rw-r--r-- | src/node.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/node.cpp b/src/node.cpp index 556bde3..99b544d 100644 --- a/src/node.cpp +++ b/src/node.cpp @@ -64,7 +64,7 @@ void UnaryFunction::applyMap(NodeFunctor &fn) const TQString UnaryFunction::infixString() const { - return TQString("%1(%2)").tqarg(name(), operand()->infixString()); + return TQString("%1(%2)").arg(name(), operand()->infixString()); } BuiltinFunction::BuiltinFunction(const char *name, Node *operand) : @@ -210,7 +210,7 @@ void DerivativeFunction::applyMap(NodeFunctor &fn) const TQString DerivativeFunction::infixString() const { - return TQString("deriv(%1, %2)").tqarg(m_operand->infixString(), m_where->infixString()); + return TQString("deriv(%1, %2)").arg(m_operand->infixString(), m_where->infixString()); } UnaryOperator::UnaryOperator(Type type, Node *operand) @@ -233,9 +233,9 @@ void UnaryOperator::applyMap(NodeFunctor &fn) const TQString UnaryOperator::infixString() const { if(dynamic_cast<BinaryOperator *>(operand())) - return TQString("-(%1)").tqarg(operand()->infixString()); + return TQString("-(%1)").arg(operand()->infixString()); - return TQString("-%1").tqarg(operand()->infixString()); + return TQString("-%1").arg(operand()->infixString()); } Abakus::number_t UnaryOperator::derivative() const @@ -312,10 +312,10 @@ TQString BinaryOperator::infixString() const op = "Error"; } - TQString left = TQString(isSimpleNode(leftNode()) ? "%1" : "(%1)").tqarg(leftNode()->infixString()); - TQString right = TQString(isSimpleNode(rightNode()) ? "%1" : "(%1)").tqarg(rightNode()->infixString()); + TQString left = TQString(isSimpleNode(leftNode()) ? "%1" : "(%1)").arg(leftNode()->infixString()); + TQString right = TQString(isSimpleNode(rightNode()) ? "%1" : "(%1)").arg(rightNode()->infixString()); - return TQString("%1 %2 %3").tqarg(left, op, right); + return TQString("%1 %2 %3").arg(left, op, right); } Abakus::number_t BinaryOperator::derivative() const |