flint++ static analyzer detected items (not all that were likely legit positives, but a start) as well as some clang detected unused vars, cleanup_

This commit is contained in:
DarthArgus
2016-02-18 22:56:34 -06:00
parent 13019a2b14
commit 3c50042abc
29 changed files with 20 additions and 358 deletions
@@ -124,14 +124,6 @@
namespace TangibleObjectNamespace
{
int const s_minCombatDuration = 4;
const int NUM_DAMAGE_TYPES = 9;
const int s_ignoreDamageTypes =
static_cast<int>(ServerArmorTemplate::DT_environmental_heat) |
static_cast<int>(ServerArmorTemplate::DT_environmental_cold) |
static_cast<int>(ServerArmorTemplate::DT_environmental_acid) |
static_cast<int>(ServerArmorTemplate::DT_environmental_electrical);
bool isEmpty(const ServerObject& obj)
{
const Container* container = obj.getContainerProperty();