diff options
author | kwolekr <kwolekr@minetest.net> | 2015-05-19 02:24:14 -0400 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2015-05-19 16:10:49 -0400 |
commit | da34a2b33e1f600ec11172f599384b9a92835403 (patch) | |
tree | f09a158be783f0486447d0c61750a7509760d83b /src/client.h | |
parent | 603297cc352cab685dd01dcd645999624ad17c0b (diff) | |
download | minetest-da34a2b33e1f600ec11172f599384b9a92835403.tar.gz minetest-da34a2b33e1f600ec11172f599384b9a92835403.tar.bz2 minetest-da34a2b33e1f600ec11172f599384b9a92835403.zip |
Replace instances of std::map<std::string, std::string> with StringMap
Also, clean up surrounding code style
Replace by-value parameter passing with const refs when possible
Fix post-increment of iterators
Diffstat (limited to 'src/client.h')
-rw-r--r-- | src/client.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client.h b/src/client.h index 87cf8ce45..56f040909 100644 --- a/src/client.h +++ b/src/client.h @@ -405,13 +405,13 @@ public: void interact(u8 action, const PointedThing& pointed); void sendNodemetaFields(v3s16 p, const std::string &formname, - const std::map<std::string, std::string> &fields); + const StringMap &fields); void sendInventoryFields(const std::string &formname, - const std::map<std::string, std::string> &fields); + const StringMap &fields); void sendInventoryAction(InventoryAction *a); void sendChatMessage(const std::wstring &message); void sendChangePassword(const std::string &oldpassword, - const std::string &newpassword); + const std::string &newpassword); void sendDamage(u8 damage); void sendBreath(u16 breath); void sendRespawn(); @@ -648,7 +648,7 @@ private: std::map<std::string, Inventory*> m_detached_inventories; // Storage for mesh data for creating multiple instances of the same mesh - std::map<std::string, std::string> m_mesh_data; + StringMap m_mesh_data; // own state LocalClientState m_state; |