From b877728731c783fbd7370935a6733c78c25d5ce2 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 15 Dec 2011 15:29:00 -0600 Subject: Rename a number of old tq methods that are no longer tq specific --- src/node.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/node.cpp') 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(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 -- cgit v1.2.1