summaryrefslogtreecommitdiffstats
path: root/src/node.cpp
diff options
context:
space:
mode:
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