mirror of
https://github.com/pocoproject/poco.git
synced 2025-03-04 19:13:30 +01:00
SF patch# 2502235
This commit is contained in:
parent
265d639aa1
commit
164623ed74
@ -1,7 +1,7 @@
|
||||
//
|
||||
// Hash.h
|
||||
//
|
||||
// $Id: //poco/svn/Foundation/include/Poco/Hash.h#2 $
|
||||
// $Id: //poco/Main/Foundation/include/Poco/Hash.h#3 $
|
||||
//
|
||||
// Library: Foundation
|
||||
// Package: Hashing
|
||||
@ -54,7 +54,7 @@ struct Hash
|
||||
std::size_t operator () (T value) const
|
||||
/// Returns the hash for the given value.
|
||||
{
|
||||
return hash(value);
|
||||
return Poco::hash(value);
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
//
|
||||
// HashFunction.h
|
||||
//
|
||||
// $Id: //poco/svn/Foundation/include/Poco/HashFunction.h#3 $
|
||||
// $Id: //poco/Main/Foundation/include/Poco/HashFunction.h#5 $
|
||||
//
|
||||
// Library: Foundation
|
||||
// Package: Hashing
|
||||
@ -55,7 +55,7 @@ struct HashFunction
|
||||
UInt32 operator () (T key, UInt32 maxValue) const
|
||||
/// Returns the hash value for the given key.
|
||||
{
|
||||
return ((UInt32) hash(key)) % maxValue;
|
||||
return static_cast<UInt32>(Poco::hash(key)) % maxValue;
|
||||
}
|
||||
};
|
||||
|
||||
@ -68,7 +68,7 @@ struct HashFunction<std::string>
|
||||
UInt32 operator () (const std::string& key, UInt32 maxValue) const
|
||||
/// Returns the hash value for the given key.
|
||||
{
|
||||
return ((UInt32) hash(key)) % maxValue;
|
||||
return static_cast<UInt32>(Poco::hash(key)) % maxValue;
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user