SF patch# 2502235

This commit is contained in:
Guenter Obiltschnig 2009-06-17 09:30:13 +00:00
parent 265d639aa1
commit 164623ed74
2 changed files with 130 additions and 130 deletions

View File

@ -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);
}
};

View File

@ -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;
}
};