summaryrefslogtreecommitdiff
path: root/src/gui/itemcontainer.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-09-27 14:55:06 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-09-27 14:55:06 +0000
commit3a3789a2c8cca53ece5ede1de9ee6d96707c76fc (patch)
treee88a2970e6d4bd9f6dfa89360629c771533cbf35 /src/gui/itemcontainer.cpp
parent82182aeb9eacb3a6e10e34b34b46ef63222ecd7d (diff)
downloadmana-3a3789a2c8cca53ece5ede1de9ee6d96707c76fc.tar.gz
mana-3a3789a2c8cca53ece5ede1de9ee6d96707c76fc.tar.bz2
mana-3a3789a2c8cca53ece5ede1de9ee6d96707c76fc.tar.xz
mana-3a3789a2c8cca53ece5ede1de9ee6d96707c76fc.zip
Some formatting changes to align with the 0.0 branch.
Diffstat (limited to 'src/gui/itemcontainer.cpp')
-rw-r--r--src/gui/itemcontainer.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/itemcontainer.cpp b/src/gui/itemcontainer.cpp
index bddf7cee..e38b665f 100644
--- a/src/gui/itemcontainer.cpp
+++ b/src/gui/itemcontainer.cpp
@@ -146,7 +146,8 @@ ItemContainer::selectNone()
void
ItemContainer::setSelectedItem(Item *item)
{
- if (mSelectedItem != item) {
+ if (mSelectedItem != item)
+ {
mSelectedItem = item;
fireSelectionChangedEvent();
}
@@ -159,7 +160,8 @@ ItemContainer::fireSelectionChangedEvent()
SelectionListeners::iterator i_end = mListeners.end();
SelectionListeners::iterator i;
- for (i = mListeners.begin(); i != i_end; ++i) {
+ for (i = mListeners.begin(); i != i_end; ++i)
+ {
(*i)->selectionChanged(event);
}
}