From 5b7605790328c6c0f473296df444d0f4a79ac779 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 6 Apr 2013 13:14:44 +0200 Subject: tagging ychat-0.7.6 --- src/maps/hash.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/maps/hash.cpp') diff --git a/src/maps/hash.cpp b/src/maps/hash.cpp index b3d80d1..1fb06c4 100644 --- a/src/maps/hash.cpp +++ b/src/maps/hash.cpp @@ -3,24 +3,24 @@ #include "hash.h" -int +int hash::operator()(string s_key) const { - int i_hash = 0; - // cout << key << "%"; + int i_hash = 0; + // cout << key << "%"; - int i_size = s_key.size(); + int i_size = s_key.size(); - for( size_t i = 0; i < i_size; ++i ) - i_hash = ( i_hash << 5 ) ^ s_key.at(i) ^ i_hash; + for( size_t i = 0; i < i_size; ++i ) + i_hash = ( i_hash << 5 ) ^ s_key.at(i) ^ i_hash; - return i_hash; -} + return i_hash; +} bool hashmap_allocator::operator()(string s_key_1, string s_key_2) const { return s_key_1.compare(s_key_2) == 0; -} +} #endif -- cgit v1.2.3