summaryrefslogtreecommitdiffstats
path: root/src/node.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-15 15:29:00 -0600
committerTimothy Pearson <[email protected]>2011-12-15 15:29:00 -0600
commitb877728731c783fbd7370935a6733c78c25d5ce2 (patch)
tree93c019e65513df453864f3434bff0da826213ffd /src/node.cpp
parentd4eecf4afe4ddf66f4d00e1bcdab14f8d21655fb (diff)
downloadabakus-b877728731c783fbd7370935a6733c78c25d5ce2.tar.gz
abakus-b877728731c783fbd7370935a6733c78c25d5ce2.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'src/node.cpp')
-rw-r--r--src/node.cpp14
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