diff options
author | Paweł Kołodziejski | 2009-02-19 18:11:05 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2009-02-19 18:11:05 +0000 |
commit | ade3c8f56551d01aad7fc7d4f710e3a19088392e (patch) | |
tree | 9480772319c3b5d553f0cd027530771b2fe92e40 /engines/sci/engine/int_hashmap.cpp | |
parent | 4e052e4d1c07fc179416557dc4a34d0a0ade08b8 (diff) | |
download | scummvm-rg350-ade3c8f56551d01aad7fc7d4f710e3a19088392e.tar.gz scummvm-rg350-ade3c8f56551d01aad7fc7d4f710e3a19088392e.tar.bz2 scummvm-rg350-ade3c8f56551d01aad7fc7d4f710e3a19088392e.zip |
formating
svn-id: r38556
Diffstat (limited to 'engines/sci/engine/int_hashmap.cpp')
-rw-r--r-- | engines/sci/engine/int_hashmap.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/engines/sci/engine/int_hashmap.cpp b/engines/sci/engine/int_hashmap.cpp index f3413d401e..cdca3e5e5b 100644 --- a/engines/sci/engine/int_hashmap.cpp +++ b/engines/sci/engine/int_hashmap.cpp @@ -67,7 +67,7 @@ int int_hash_map_t::check_value(int value, bool add, char *was_added) { if (*node) { return (*node)->value; } - /* Not found */ + // Not found if (!add) return -1; @@ -75,7 +75,7 @@ int int_hash_map_t::check_value(int value, bool add, char *was_added) { if (was_added) *was_added = 1; - if (holes) { /* Re-use old node */ + if (holes) { // Re-use old node (*node) = holes; holes = (*node)->next; (*node)->next = NULL; @@ -90,7 +90,6 @@ int int_hash_map_t::check_value(int value, bool add, char *was_added) { return (*node)->value; } - int int_hash_map_t::remove_value(int value) { node_t **node = &(nodes[HASH(value)]); @@ -101,10 +100,10 @@ int int_hash_map_t::remove_value(int value) { node_t *oldnode = *node; *node = (*node)->next; - oldnode->next = holes; /* Old node is now a 'hole' */ + oldnode->next = holes; // Old node is now a 'hole' holes = oldnode; return oldnode->value; } else - return -1; /* Not found */ + return -1; // Not found } |