Modernize source code: last part (#6285)
authorLoïc Blot <nerzhul@users.noreply.github.com>
Sun, 20 Aug 2017 11:30:50 +0000 (13:30 +0200)
committerGitHub <noreply@github.com>
Sun, 20 Aug 2017 11:30:50 +0000 (13:30 +0200)
commit1c1c97cbd1d7913ac12bf550ec02c97f843a0fd3
tree03dd0c39e323c7f0b1f06014ff30e74f429bfa01
parent50669cd2822a11570ae462972194eeb2d585a8c1
Modernize source code: last part (#6285)

* Modernize source code: last par

* Use empty when needed
* Use emplace_back instead of push_back when needed
* For range-based loops
* Initializers fixes
* constructors, destructors default
* c++ C stl includes
72 files changed:
src/camera.h
src/chat.cpp
src/database-dummy.h
src/emerge.h
src/event.h
src/event_manager.h
src/exceptions.h
src/game.cpp
src/gettime.h
src/itemdef.h
src/main.cpp
src/mainmenumanager.h
src/mapnode.cpp
src/network/connection.cpp
src/network/connection.h
src/script/common/c_content.cpp
src/script/common/c_content.h
src/script/common/c_converter.cpp
src/script/common/c_converter.h
src/script/common/c_internal.h
src/script/cpp_api/s_async.cpp
src/script/cpp_api/s_async.h
src/script/cpp_api/s_base.cpp
src/script/cpp_api/s_base.h
src/script/cpp_api/s_inventory.cpp
src/script/cpp_api/s_item.cpp
src/script/cpp_api/s_node.cpp
src/script/cpp_api/s_node.h
src/script/cpp_api/s_nodemeta.cpp
src/script/cpp_api/s_nodemeta.h
src/script/cpp_api/s_player.cpp
src/script/cpp_api/s_player.h
src/script/cpp_api/s_security.cpp
src/script/lua_api/l_client.cpp
src/script/lua_api/l_env.cpp
src/script/lua_api/l_inventory.cpp
src/script/lua_api/l_mainmenu.cpp
src/script/lua_api/l_mapgen.cpp
src/script/lua_api/l_metadata.cpp
src/script/lua_api/l_metadata.h
src/script/lua_api/l_object.cpp
src/script/scripting_client.cpp
src/sky.cpp
src/sound.h
src/sound_openal.cpp
src/staticobject.cpp
src/staticobject.h
src/subgame.cpp
src/subgame.h
src/terminal_chat_console.cpp
src/tool.cpp
src/tool.h
src/touchscreengui.cpp
src/treegen.cpp
src/unittest/test.cpp
src/unittest/test.h
src/unittest/test_compression.cpp
src/unittest/test_nodedef.cpp
src/unittest/test_noise.cpp
src/unittest/test_voxelalgorithms.cpp
src/util/areastore.cpp
src/util/areastore.h
src/util/enriched_string.cpp
src/util/numeric.h
src/util/srp.cpp
src/util/string.cpp
src/util/string.h
src/voxel.cpp
src/voxel.h
src/voxelalgorithms.cpp
src/wieldmesh.cpp
src/wieldmesh.h