diff options
author | Timothy Pearson <[email protected]> | 2011-12-16 09:55:27 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-16 09:55:27 -0600 |
commit | 04bc759a8ee52b9c11cb6653276a7ef29285f10c (patch) | |
tree | bc4f8437955402b7b474e156e7fd770300421f96 /src/node.cpp | |
parent | b877728731c783fbd7370935a6733c78c25d5ce2 (diff) | |
download | abakus-04bc759a8ee52b9c11cb6653276a7ef29285f10c.tar.gz abakus-04bc759a8ee52b9c11cb6653276a7ef29285f10c.zip |
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit b877728731c783fbd7370935a6733c78c25d5ce2.
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 99b544d..556bde3 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)").arg(name(), operand()->infixString()); + return TQString("%1(%2)").tqarg(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)").arg(m_operand->infixString(), m_where->infixString()); + return TQString("deriv(%1, %2)").tqarg(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)").arg(operand()->infixString()); + return TQString("-(%1)").tqarg(operand()->infixString()); - return TQString("-%1").arg(operand()->infixString()); + return TQString("-%1").tqarg(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)").arg(leftNode()->infixString()); - TQString right = TQString(isSimpleNode(rightNode()) ? "%1" : "(%1)").arg(rightNode()->infixString()); + TQString left = TQString(isSimpleNode(leftNode()) ? "%1" : "(%1)").tqarg(leftNode()->infixString()); + TQString right = TQString(isSimpleNode(rightNode()) ? "%1" : "(%1)").tqarg(rightNode()->infixString()); - return TQString("%1 %2 %3").arg(left, op, right); + return TQString("%1 %2 %3").tqarg(left, op, right); } Abakus::number_t BinaryOperator::derivative() const |