AlexAUT / Kroniax_Cpp

The official source of the game Kroniax
MIT License
19 stars 4 forks source link

Addressing valgrind complaints and g++ warnings #10

Closed Kojirion closed 10 years ago

Kojirion commented 10 years ago

Appeasing valgrind: Added a virtual destructor to State and initialized NetworkHandler::m_connected to false in ctor.

Appeasing g++: Reordered the initialization of variables to correspond to the order they 're declared in. Added a default: at guiBaseClass.cpp, line 35 to account for enum values not in the switch statement. Added parentheses at sfchat.cpp, lines 973-974 to clarify order of precedence.