summaryrefslogtreecommitdiff
path: root/src/inventory.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-03-25 23:42:57 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-03-25 23:42:57 +0100
commitcd20fb3432498b8871401bdd65a143197e2a6538 (patch)
tree1edd3e20e3501de5315fa5bfc46b8673ad40d5dd /src/inventory.cpp
parent4ba8c80791c15c144d66e6a9b23e878d3313fa26 (diff)
downloadMana-cd20fb3432498b8871401bdd65a143197e2a6538.tar.gz
Mana-cd20fb3432498b8871401bdd65a143197e2a6538.tar.bz2
Mana-cd20fb3432498b8871401bdd65a143197e2a6538.tar.xz
Mana-cd20fb3432498b8871401bdd65a143197e2a6538.zip
A host of code style fixes
Mostly putting & and * in the right place and making some getters const.
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r--src/inventory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inventory.cpp b/src/inventory.cpp
index 80bc582b..59f51e39 100644
--- a/src/inventory.cpp
+++ b/src/inventory.cpp
@@ -53,7 +53,7 @@ Inventory::~Inventory()
delete [] mItems;
}
-Item* Inventory::getItem(int index) const
+Item *Inventory::getItem(int index) const
{
#ifdef TMWSERV_SUPPORT
if (index < 0 || index >= mSize)
@@ -65,7 +65,7 @@ Item* Inventory::getItem(int index) const
return mItems[index];
}
-Item* Inventory::findItem(int itemId) const
+Item *Inventory::findItem(int itemId) const
{
for (int i = 0; i < mSize; i++)
if (mItems[i] && mItems[i]->getId() == itemId)