summaryrefslogtreecommitdiffstats
path: root/kmymoney2/mymoney/storage/mymoneyseqaccessmgr.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:37:08 -0600
committerSlávek Banko <slavek.banko@axis.cz>2012-06-06 03:55:16 +0200
commit1de308fd3b1aacec7769d867a6eeaa98af69c61c (patch)
tree0a6433c4fe72a4e70d7686c84dcf9848ff8b7284 /kmymoney2/mymoney/storage/mymoneyseqaccessmgr.cpp
parente0d4ece30d7c0095bfdd9a81364b66fe18a0f2cb (diff)
downloadkmymoney-1de308fd3b1aacec7769d867a6eeaa98af69c61c.tar.gz
kmymoney-1de308fd3b1aacec7769d867a6eeaa98af69c61c.zip
Remove additional unneeded tq method conversions
(cherry picked from commit c70e40bd3f54a2c4d9ef57a36f19c996f4e00ed6)
Diffstat (limited to 'kmymoney2/mymoney/storage/mymoneyseqaccessmgr.cpp')
-rw-r--r--kmymoney2/mymoney/storage/mymoneyseqaccessmgr.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kmymoney2/mymoney/storage/mymoneyseqaccessmgr.cpp b/kmymoney2/mymoney/storage/mymoneyseqaccessmgr.cpp
index da9a40c..3ab0b72 100644
--- a/kmymoney2/mymoney/storage/mymoneyseqaccessmgr.cpp
+++ b/kmymoney2/mymoney/storage/mymoneyseqaccessmgr.cpp
@@ -225,14 +225,14 @@ void MyMoneySeqAccessMgr::removePayee(const MyMoneyPayee& payee)
// scan all transactions to check if the payee is still referenced
for(it_t = m_transactionList.begin(); it_t != m_transactionList.end(); ++it_t) {
if((*it_t).hasReferenceTo(payee.id())) {
- throw new MYMONEYEXCEPTION(TQString("Cannot remove payee that is still referenced to a %1").tqarg("transaction"));
+ throw new MYMONEYEXCEPTION(TQString("Cannot remove payee that is still referenced to a %1").arg("transaction"));
}
}
// check referential integrity in schedules
for(it_s = m_scheduleList.begin(); it_s != m_scheduleList.end(); ++it_s) {
if((*it_s).hasReferenceTo(payee.id())) {
- throw new MYMONEYEXCEPTION(TQString("Cannot remove payee that is still referenced to a %1").tqarg("schedule"));
+ throw new MYMONEYEXCEPTION(TQString("Cannot remove payee that is still referenced to a %1").arg("schedule"));
}
}
@@ -503,7 +503,7 @@ void MyMoneySeqAccessMgr::modifyAccount(const MyMoneyAccount& account, const boo
// update information in account list
m_accountList.modify(account.id(), account);
- // tqinvalidate cached balance
+ // invalidate cached balance
invalidateBalanceCache(account.id());
} else
@@ -817,14 +817,14 @@ const MyMoneyTransaction MyMoneySeqAccessMgr::transaction(const TQString& id) co
// get the full key of this transaction, throw exception
// if it's invalid (unknown)
if(!m_transactionKeys.contains(id)) {
- TQString msg = TQString("Invalid transaction id '%1'").tqarg(id);
+ TQString msg = TQString("Invalid transaction id '%1'").arg(id);
throw new MYMONEYEXCEPTION(msg);
}
// check if this key is in the list, throw exception if not
TQString key = m_transactionKeys[id];
if(!m_transactionList.contains(key)) {
- TQString msg = TQString("Invalid transaction key '%1'").tqarg(key);
+ TQString msg = TQString("Invalid transaction key '%1'").arg(key);
throw new MYMONEYEXCEPTION(msg);
}
@@ -1446,7 +1446,7 @@ void MyMoneySeqAccessMgr::addCurrency(const MyMoneySecurity& currency)
it = m_currencyList.find(currency.id());
if(it != m_currencyList.end()) {
- throw new MYMONEYEXCEPTION(TQString("Cannot add currency with existing id %1").tqarg(currency.id()));
+ throw new MYMONEYEXCEPTION(TQString("Cannot add currency with existing id %1").arg(currency.id()));
}
m_currencyList.insert(currency.id(), currency);
@@ -1458,7 +1458,7 @@ void MyMoneySeqAccessMgr::modifyCurrency(const MyMoneySecurity& currency)
it = m_currencyList.find(currency.id());
if(it == m_currencyList.end()) {
- throw new MYMONEYEXCEPTION(TQString("Cannot modify currency with unknown id %1").tqarg(currency.id()));
+ throw new MYMONEYEXCEPTION(TQString("Cannot modify currency with unknown id %1").arg(currency.id()));
}
m_currencyList.modify(currency.id(), currency);
@@ -1472,7 +1472,7 @@ void MyMoneySeqAccessMgr::removeCurrency(const MyMoneySecurity& currency)
it = m_currencyList.find(currency.id());
if(it == m_currencyList.end()) {
- throw new MYMONEYEXCEPTION(TQString("Cannot remove currency with unknown id %1").tqarg(currency.id()));
+ throw new MYMONEYEXCEPTION(TQString("Cannot remove currency with unknown id %1").arg(currency.id()));
}
m_currencyList.remove(currency.id());
@@ -1487,7 +1487,7 @@ const MyMoneySecurity MyMoneySeqAccessMgr::currency(const TQString& id) const
it = m_currencyList.find(id);
if(it == m_currencyList.end()) {
- throw new MYMONEYEXCEPTION(TQString("Cannot retrieve currency with unknown id '%1'").tqarg(id));
+ throw new MYMONEYEXCEPTION(TQString("Cannot retrieve currency with unknown id '%1'").arg(id));
}
return *it;