C++11 patchset 9: move hardcoded init parameters to class definitions (part 1) (...
authorLoïc Blot <nerzhul@users.noreply.github.com>
Fri, 16 Jun 2017 09:25:52 +0000 (11:25 +0200)
committerGitHub <noreply@github.com>
Fri, 16 Jun 2017 09:25:52 +0000 (11:25 +0200)
commit76be103a91d6987527af19e87d93007be8ba8a67
treec83c21e7c0adc37251f77788023eb3c242a751ca
parent49d6e5f4ab79078d1608c22a9cce286b3cf86eb9
C++11 patchset 9: move hardcoded init parameters to class definitions (part 1) (#5984)

* C++11 patchset 9: move hardcoded init parameters to class definitions

C++11 introduced the possibility to define the default values directly in class definitions, do it on current code

Also remove some unused attributes

* CollisionInfo::bouncy
* collisionMoveResult::collides_xy
* collisionMoveResult::standing_on_unloaded
* Clouds::speed

* More constructor cleanups + some variables removal

* remove only write guiFormSpecMenu::m_old_tooltip
* move header included inside defintions in genericobject.h
* remove some unused since years exception classes
* remove unused & empty debug_stacks_init
* remove unused & empty content_nodemeta_serialize_legacy
* remove forgotten useless bool (bouncy) in collision.cpp code
50 files changed:
src/ban.cpp
src/ban.h
src/camera.cpp
src/camera.h
src/chat.cpp
src/chat.h
src/client.cpp
src/client.h
src/clientenvironment.cpp
src/clientenvironment.h
src/clientiface.h
src/clientmap.cpp
src/clientmap.h
src/clientmedia.cpp
src/clientmedia.h
src/clientsimpleobject.h
src/clouds.cpp
src/clouds.h
src/collision.cpp
src/collision.h
src/content_cao.cpp
src/content_cao.h
src/content_cso.cpp
src/content_nodemeta.cpp
src/content_nodemeta.h
src/content_sao.cpp
src/content_sao.h
src/craftdef.h
src/database-postgresql.cpp
src/database-postgresql.h
src/database-redis.h
src/database-sqlite3.cpp
src/database-sqlite3.h
src/debug.cpp
src/debug.h
src/emerge.cpp
src/emerge.h
src/environment.cpp
src/environment.h
src/event.h
src/exceptions.h
src/fontengine.cpp
src/fontengine.h
src/genericobject.h
src/guiChatConsole.cpp
src/guiChatConsole.h
src/guiEngine.cpp
src/guiEngine.h
src/guiFormSpecMenu.cpp
src/guiFormSpecMenu.h