[PATCH 08/13] Remove useless variable (#6).
Vincent Ordy
vincent at ordy.net
Thu Jun 17 18:27:02 CEST 2010
---
kmymoney/views/kbudgetview.cpp | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/kmymoney/views/kbudgetview.cpp b/kmymoney/views/kbudgetview.cpp
index 4a67fd6..9654ef0 100644
--- a/kmymoney/views/kbudgetview.cpp
+++ b/kmymoney/views/kbudgetview.cpp
@@ -330,8 +330,6 @@ void KBudgetView::loadAccounts(void)
m_transactionCountMap = file->transactionCountMap();
m_accountTree->setBaseCurrency(file->baseCurrency());
- bool haveUnusedBudgets = false;
-
// create the items
try {
const MyMoneySecurity& security = file->baseCurrency();
@@ -340,13 +338,13 @@ void KBudgetView::loadAccounts(void)
const MyMoneyAccount& income = file->income();
QStringList incSubAcctList = income.accountList();
m_incomeItem = new KMyMoneyAccountTreeBudgetItem(m_accountTree, income, m_budget, security, i18n("Income"));
- haveUnusedBudgets |= loadSubAccounts(m_incomeItem, incSubAcctList, m_budget);
+ loadSubAccounts(m_incomeItem, incSubAcctList, m_budget);
m_incomeItem->setSelectable(false);
const MyMoneyAccount& expense = file->expense();
QStringList expSubAcctList = expense.accountList();
m_expenseItem = new KMyMoneyAccountTreeBudgetItem(m_accountTree, expense, m_budget, security, i18n("Expense"));
- haveUnusedBudgets |= loadSubAccounts(m_expenseItem, expSubAcctList, m_budget);
+ loadSubAccounts(m_expenseItem, expSubAcctList, m_budget);
m_expenseItem->setSelectable(false);
} catch (MyMoneyException *e) {
--
1.7.1
--------------060703030708080806090607
Content-Type: text/x-diff;
name="0009-Remove-useless-variables-7.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="0009-Remove-useless-variables-7.patch"
More information about the KMyMoney-devel
mailing list