Various fixes

Former-commit-id: b375cb70e49effc001fb781028bd8b7d07044941 [formerly cbdadfbabd56bed8ffadbf3cbd7175e95908452f]
Former-commit-id: 224bc14061ba65eff9b9d779104c5df95e63e905
This commit is contained in:
Gawaboumga
2016-07-28 19:22:41 +02:00
parent 59868488f0
commit d4b4e3f565
26 changed files with 141 additions and 126 deletions

View File

@@ -45,7 +45,7 @@ namespace Nz
*/
inline String::SharedString::SharedString(std::size_t strSize) :
capacity(strSize),
capacity(strSize),
size(strSize),
string(new char[strSize + 1])
{
@@ -84,16 +84,15 @@ namespace Nz
namespace std
{
/*!
* \brief Specialisation of std to hash
* \return Result of the hash
*
* \param str String to hash
*/
template<>
struct hash<Nz::String>
{
/*!
* \brief Specialisation of std to hash
* \return Result of the hash
*
* \param str String to hash
*/
size_t operator()(const Nz::String& str) const
{
// Algorithme DJB2