diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-15 02:20:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-15 02:20:52 +0300 |
commit | 18b8d9888cd5ee8a533a1059f109d8de1c6b04d1 (patch) | |
tree | db753995392ae8e6c5202467f417f31deb8717f0 /src/units.cpp | |
parent | c3b8f951d6e16dfb48cb71bd7ad3d7c43ea56c0a (diff) | |
download | plus-18b8d9888cd5ee8a533a1059f109d8de1c6b04d1.tar.gz plus-18b8d9888cd5ee8a533a1059f109d8de1c6b04d1.tar.bz2 plus-18b8d9888cd5ee8a533a1059f109d8de1c6b04d1.tar.xz plus-18b8d9888cd5ee8a533a1059f109d8de1c6b04d1.zip |
Fix code style again.
Diffstat (limited to 'src/units.cpp')
-rw-r--r-- | src/units.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/units.cpp b/src/units.cpp index 9aa1cdf5e..3c4da47e8 100644 --- a/src/units.cpp +++ b/src/units.cpp @@ -55,9 +55,9 @@ enum UnitType UNIT_END }; -std::string formatUnit(int value, int type); +static std::string formatUnit(int value, int type); -std::string splitNumber(std::string str, const std::string &separator); +static std::string splitNumber(std::string str, const std::string &separator); struct UnitDescription units[UNIT_END]; @@ -173,7 +173,7 @@ void Units::loadUnits() } } -std::string formatUnit(int value, int type) +static std::string formatUnit(int value, int type) { struct UnitDescription ud = units[type]; struct UnitLevel ul; @@ -262,7 +262,7 @@ std::string Units::formatWeight(int value) return formatUnit(value, UNIT_WEIGHT); } -std::string splitNumber(std::string str, const std::string &separator) +static std::string splitNumber(std::string str, const std::string &separator) { std::string lastPart; size_t point = str.find("."); |