summaryrefslogtreecommitdiffstats
path: root/kmymoney2/mymoney/mymoneybudget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/mymoney/mymoneybudget.cpp')
-rw-r--r--kmymoney2/mymoney/mymoneybudget.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/kmymoney2/mymoney/mymoneybudget.cpp b/kmymoney2/mymoney/mymoneybudget.cpp
index 3cb7793..55cd6cc 100644
--- a/kmymoney2/mymoney/mymoneybudget.cpp
+++ b/kmymoney2/mymoney/mymoneybudget.cpp
@@ -255,7 +255,7 @@ bool MyMoneyBudget::read(const TQDomElement& e)
account.setId(c.attribute("id"));
if(c.hasAttribute("budgetlevel")) {
- int i = AccountGroup::kBudgetLevelText.tqfindIndex(c.attribute("budgetlevel"));
+ int i = AccountGroup::kBudgetLevelText.findIndex(c.attribute("budgetlevel"));
if ( i != -1 )
account.setBudgetLevel(static_cast<AccountGroup::eBudgetLevel>(i));
}
@@ -299,12 +299,12 @@ void MyMoneyBudget::writeXML(TQDomDocument& document, TQDomElement& tqparent) co
bool MyMoneyBudget::hasReferenceTo(const TQString& id) const
{
// return true if we have an assignment for this id
- return (m_accounts.tqcontains(id));
+ return (m_accounts.contains(id));
}
void MyMoneyBudget::removeReference(const TQString& id)
{
- if(m_accounts.tqcontains(id)) {
+ if(m_accounts.contains(id)) {
m_accounts.remove(id);
}
}
@@ -326,7 +326,7 @@ const MyMoneyBudget::AccountGroup& MyMoneyBudget::account(const TQString _id) co
{
static AccountGroup empty;
- if ( m_accounts.tqcontains(_id) )
+ if ( m_accounts.contains(_id) )
return m_accounts[_id];
return empty;
}