Core: Some optimizations
- Declare some functions const - Fix some mem leak - Fix some resource leak - Remove unused variables and functions - Remove duplicate functions - Reduce the scope of some variables - Remove unused file --HG-- branch : trunk
This commit is contained in:
@@ -170,9 +170,9 @@ class ThreatContainer
|
||||
|
||||
void setDirty(bool pDirty) { iDirty = pDirty; }
|
||||
|
||||
bool isDirty() { return iDirty; }
|
||||
bool isDirty() const { return iDirty; }
|
||||
|
||||
bool empty() { return(iThreatList.empty()); }
|
||||
bool empty() const { return(iThreatList.empty()); }
|
||||
|
||||
HostileReference* getMostHated() { return iThreatList.empty() ? NULL : iThreatList.front(); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user