diff options
author | maximius <none@none> | 2009-10-17 15:35:07 -0700 |
---|---|---|
committer | maximius <none@none> | 2009-10-17 15:35:07 -0700 |
commit | 26b5e033ffde3d161382fc9addbfa99738379641 (patch) | |
tree | a344f369ca32945f787a02dee35c3dbe342bed7e /dep/ACE_wrappers/ace/Hashable.cpp | |
parent | f21f47005dcb6b76e1abc9f35fbcd03eed191bff (diff) |
*Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and some other cleanups by hand)
*Fix a possible crash in Spell::DoAllEffectOnTarget
--HG--
branch : trunk
Diffstat (limited to 'dep/ACE_wrappers/ace/Hashable.cpp')
-rw-r--r-- | dep/ACE_wrappers/ace/Hashable.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/dep/ACE_wrappers/ace/Hashable.cpp b/dep/ACE_wrappers/ace/Hashable.cpp index c3c9bc43a1a..efcad1b3296 100644 --- a/dep/ACE_wrappers/ace/Hashable.cpp +++ b/dep/ACE_wrappers/ace/Hashable.cpp @@ -1,23 +1,17 @@ //$Id: Hashable.cpp 80826 2008-03-04 14:51:23Z wotte $ - #include "ace/Hashable.h" - #if !defined (__ACE_INLINE__) #include "ace/Hashable.inl" #endif /* __ACE_INLINE __ */ - ACE_RCSID (ace, Hashable, "$Id: Hashable.cpp 80826 2008-03-04 14:51:23Z wotte $") - ACE_BEGIN_VERSIONED_NAMESPACE_DECL - ACE_Hashable::~ACE_Hashable (void) { } - unsigned long ACE_Hashable::hash (void) const { @@ -26,12 +20,9 @@ ACE_Hashable::hash (void) const // happen far less often than a non-zero value, so this caching // strategy should pay off, esp. if hash computation is expensive // relative to the simple comparison. - if (this->hash_value_ == 0) this->hash_value_ = this->hash_i (); - return this->hash_value_; } - ACE_END_VERSIONED_NAMESPACE_DECL |