Changed: Minor changes

--HG--
branch : develop
hg/feature/material-editor
kervala 9 years ago
parent 8b770d41ac
commit 88042cc28d

@ -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…
Cancel
Save