summaryrefslogtreecommitdiff
path: root/src/units.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-02-17 20:33:28 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-02-17 20:33:28 +0100
commit366e0b120624cb382fd3b233b8ec7a75c31a2da4 (patch)
tree8cd1d65a19e490c2ce74bc2c2ef6ebe358b4d1c1 /src/units.cpp
parente02c372c50b3d8b498661a05183f460ae6ae395f (diff)
downloadmana-366e0b120624cb382fd3b233b8ec7a75c31a2da4.tar.gz
mana-366e0b120624cb382fd3b233b8ec7a75c31a2da4.tar.bz2
mana-366e0b120624cb382fd3b233b8ec7a75c31a2da4.tar.xz
mana-366e0b120624cb382fd3b233b8ec7a75c31a2da4.zip
Got rid of const where it does not make much sense
It's not that useful to make variables that are passed by value const. In the declaration it is even completely ignored.
Diffstat (limited to 'src/units.cpp')
-rw-r--r--src/units.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/units.cpp b/src/units.cpp
index 3c02fb05..f4bc01b7 100644
--- a/src/units.cpp
+++ b/src/units.cpp
@@ -159,7 +159,7 @@ void Units::loadUnits()
}
}
-std::string formatUnit(const int value, const int type)
+std::string formatUnit(int value, int type)
{
struct UnitDescription ud = units[type];
struct UnitLevel ul;
@@ -222,12 +222,12 @@ std::string formatUnit(const int value, const int type)
}
}
-std::string Units::formatCurrency(const int value)
+std::string Units::formatCurrency(int value)
{
return formatUnit(value, UNIT_CURRENCY);
}
-std::string Units::formatWeight(const int value)
+std::string Units::formatWeight(int value)
{
return formatUnit(value, UNIT_WEIGHT);
}