- Sync scriptbranch with trunk.
SVN r2269 (scripting)
This commit is contained in:
commit
42ac75e894
127 changed files with 2532 additions and 958 deletions
|
|
@ -745,7 +745,11 @@ protected:
|
|||
Node *mp = MainPosition(key), **mpp;
|
||||
HashTraits Traits;
|
||||
|
||||
if (!mp->IsNil() && !Traits.Compare(mp->Pair.Key, key)) /* the key is in its main position */
|
||||
if (mp->IsNil())
|
||||
{
|
||||
/* the key is definitely not present, because there is nothing at its main position */
|
||||
}
|
||||
else if (!Traits.Compare(mp->Pair.Key, key)) /* the key is in its main position */
|
||||
{
|
||||
if (mp->Next != NULL) /* move next node to its main position */
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue