mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-03 16:54:47 +00:00
Changed: Minor changes
This commit is contained in:
parent
68c163ef16
commit
ab58c8c6cb
4 changed files with 4 additions and 4 deletions
|
@ -239,7 +239,7 @@ public:
|
|||
|
||||
CHashCode() {}
|
||||
|
||||
enum { bucket_size = 4, min_buckets = 8, };
|
||||
enum { bucket_size = 4, min_buckets = 8 };
|
||||
|
||||
size_t operator () ( const TDataSetRow &index ) const { return index.getHashCode(); }
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ class CDBStringUpdater : public NLMISC::CSingleton<CDBStringUpdater>
|
|||
// hasher for the identifier
|
||||
struct THashDBStringLeaf
|
||||
{
|
||||
enum { bucket_size = 4, min_buckets = 8, };
|
||||
enum { bucket_size = 4, min_buckets = 8 };
|
||||
size_t operator()(const TBDStringLeaf &stringLeaf) const
|
||||
{
|
||||
return ((size_t)stringLeaf.ClientDB>>4) ^ ((size_t)stringLeaf.Node>>4);
|
||||
|
|
|
@ -50,7 +50,7 @@ extern CGenericXmlMsgHeaderManager GenericMsgManager;
|
|||
|
||||
struct CServiceIdHash
|
||||
{
|
||||
enum { bucket_size = 4, min_buckets = 8, };
|
||||
enum { bucket_size = 4, min_buckets = 8 };
|
||||
size_t operator () ( const NLNET::TServiceId &sid ) const { return sid.get(); }
|
||||
bool operator()(const NLNET::TServiceId &left, const NLNET::TServiceId &right) const { return left < right; }
|
||||
};
|
||||
|
|
|
@ -43,7 +43,7 @@ public:
|
|||
|
||||
struct CUint32Hash
|
||||
{
|
||||
enum { bucket_size = 4, min_buckets = 8, };
|
||||
enum { bucket_size = 4, min_buckets = 8 };
|
||||
size_t operator () (const uint32 &i) const { return i; }
|
||||
bool operator()(const uint32 left, const uint32 right) const { return left < right; }
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue