[PATCH 05/13] Remove useless variable (#4).
Vincent Ordy
vincent at ordy.net
Thu Jun 17 18:19:27 CEST 2010
---
kmymoney/widgets/register.cpp | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/kmymoney/widgets/register.cpp b/kmymoney/widgets/register.cpp
index 1f2e492..0624e5c 100644
--- a/kmymoney/widgets/register.cpp
+++ b/kmymoney/widgets/register.cpp
@@ -1777,12 +1777,10 @@ void Register::selectRange(RegisterItem* from, RegisterItem* to, bool invert, bo
from = from->nextItem();
}
- bool changed = false;
if (clearSel) {
for (item = firstItem(); item; item = item->nextItem()) {
if (item->isSelected() && item->isVisible()) {
item->setSelected(false);
- changed = true;
}
}
}
@@ -1792,14 +1790,12 @@ void Register::selectRange(RegisterItem* from, RegisterItem* to, bool invert, bo
if (!invert) {
if (!item->isSelected() && item->isVisible()) {
item->setSelected(true);
- changed = true;
}
} else {
bool sel = !item->isSelected();
if ((item->isSelected() != sel) && (sel || !sel)) {
if (item->isVisible()) {
item->setSelected(sel);
- changed = true;
}
}
}
--
1.7.1
--------------060703030708080806090607
Content-Type: text/x-diff;
name="0006-Use-ref-instead-of-copy-for-function-const-arguments.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename*0="0006-Use-ref-instead-of-copy-for-function-const-arguments.pa";
filename*1="tch"
More information about the KMyMoney-devel
mailing list