diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-26 17:05:18 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-26 17:18:21 +0200 |
commit | 43e99491a76bb85faf60c004e84b6c2b14cf41e7 (patch) | |
tree | 4aba689b76138118b4da043425fb3e8576db418c /src/utils/xml.cpp | |
parent | e726c34606f85347e70a0deb6b180db03b6d0c25 (diff) | |
download | manaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.tar.gz manaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.tar.bz2 manaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.tar.xz manaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.zip |
Standardize on the position of the const keyword
Same as for the client.
Diffstat (limited to 'src/utils/xml.cpp')
-rw-r--r-- | src/utils/xml.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utils/xml.cpp b/src/utils/xml.cpp index 9527658a..55380275 100644 --- a/src/utils/xml.cpp +++ b/src/utils/xml.cpp @@ -26,7 +26,7 @@ namespace XML { -int getProperty(xmlNodePtr node, char const *name, int def) +int getProperty(xmlNodePtr node, const char *name, int def) { if (xmlChar *prop = xmlGetProp(node, BAD_CAST name)) { @@ -37,8 +37,7 @@ int getProperty(xmlNodePtr node, char const *name, int def) return def; } -double -getFloatProperty(xmlNodePtr node, const char* name, double def) +double getFloatProperty(xmlNodePtr node, const char* name, double def) { double &ret = def; @@ -51,7 +50,8 @@ getFloatProperty(xmlNodePtr node, const char* name, double def) return ret; } -std::string getProperty(xmlNodePtr node, char const *name, std::string const &def) +std::string getProperty(xmlNodePtr node, const char *name, + const std::string &def) { if (xmlChar *prop = xmlGetProp(node, BAD_CAST name)) { |