diff options
Diffstat (limited to 'kmymoney2/mymoney/mymoneytransaction.cpp')
-rw-r--r-- | kmymoney2/mymoney/mymoneytransaction.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kmymoney2/mymoney/mymoneytransaction.cpp b/kmymoney2/mymoney/mymoneytransaction.cpp index 38bb669..27dbe98 100644 --- a/kmymoney2/mymoney/mymoneytransaction.cpp +++ b/kmymoney2/mymoney/mymoneytransaction.cpp @@ -188,7 +188,7 @@ void MyMoneyTransaction::modifySplit(MyMoneySplit& split) return; } } - throw new MYMONEYEXCEPTION(TQString("Invalid split id '%1'").tqarg(split.id())); + throw new MYMONEYEXCEPTION(TQString("Invalid split id '%1'").arg(split.id())); } void MyMoneyTransaction::removeSplit(const MyMoneySplit& split) @@ -202,7 +202,7 @@ void MyMoneyTransaction::removeSplit(const MyMoneySplit& split) } } if(it == m_splits.end()) - throw new MYMONEYEXCEPTION(TQString("Invalid split id '%1'").tqarg(split.id())); + throw new MYMONEYEXCEPTION(TQString("Invalid split id '%1'").arg(split.id())); } void MyMoneyTransaction::removeSplits(void) @@ -219,7 +219,7 @@ const MyMoneySplit& MyMoneyTransaction::splitByPayee(const TQString& payeeId) co if((*it).payeeId() == payeeId) return *it; } - throw new MYMONEYEXCEPTION(TQString("Split not found for payee '%1'").tqarg(TQString(payeeId))); + throw new MYMONEYEXCEPTION(TQString("Split not found for payee '%1'").arg(TQString(payeeId))); } const MyMoneySplit& MyMoneyTransaction::splitByAccount(const TQString& accountId, const bool match) const @@ -232,7 +232,7 @@ const MyMoneySplit& MyMoneyTransaction::splitByAccount(const TQString& accountId if(match == false && (*it).accountId() != accountId) return *it; } - throw new MYMONEYEXCEPTION(TQString("Split not found for account %1%2").tqarg(match?"":"!").tqarg(TQString(accountId))); + throw new MYMONEYEXCEPTION(TQString("Split not found for account %1%2").arg(match?"":"!").arg(TQString(accountId))); } const MyMoneySplit& MyMoneyTransaction::splitByAccount(const TQStringList& accountIds, const bool match) const @@ -245,7 +245,7 @@ const MyMoneySplit& MyMoneyTransaction::splitByAccount(const TQStringList& accou if(match == false && !accountIds.contains((*it).accountId())) return *it; } - throw new MYMONEYEXCEPTION(TQString("Split not found for account %1%1...%2").tqarg(match?"":"!").tqarg(accountIds.front(),accountIds.back())); + throw new MYMONEYEXCEPTION(TQString("Split not found for account %1%1...%2").arg(match?"":"!").arg(accountIds.front(),accountIds.back())); } const MyMoneySplit& MyMoneyTransaction::splitById(const TQString& splitId) const @@ -256,7 +256,7 @@ const MyMoneySplit& MyMoneyTransaction::splitById(const TQString& splitId) const if((*it).id() == splitId) return *it; } - throw new MYMONEYEXCEPTION(TQString("Split not found for id '%1'").tqarg(TQString(splitId))); + throw new MYMONEYEXCEPTION(TQString("Split not found for id '%1'").arg(TQString(splitId))); } const TQString MyMoneyTransaction::nextSplitID() @@ -467,7 +467,7 @@ TQString MyMoneyTransaction::accountSignature(bool includeSplitCount) const rc += "-"; rc += it_a.key(); if(includeSplitCount) - rc += TQString("*%1").tqarg(*it_a); + rc += TQString("*%1").arg(*it_a); } return rc; } |