From 3e9197b14ddfa0dc4418273af88ad058a3c466bd Mon Sep 17 00:00:00 2001 From: Chu Hoang Date: Mon, 12 Oct 2015 15:41:15 +0100 Subject: [PATCH] Moved INITIAL_HASH_VALUE from hash.cpp to hash.h Change-Id: I474044a9e2ed7437d1792fc97327372e26a9dbc3 --- dali/devel-api/common/hash.cpp | 1 - dali/devel-api/common/hash.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dali/devel-api/common/hash.cpp b/dali/devel-api/common/hash.cpp index 1cfcf11..3b8b3bd 100644 --- a/dali/devel-api/common/hash.cpp +++ b/dali/devel-api/common/hash.cpp @@ -27,7 +27,6 @@ namespace //unnamed namespace /* * djb2 (http://www.cse.yorku.ca/~oz/hash.html) */ -const std::size_t INITIAL_HASH_VALUE = 5381; inline void HashString( const char* string, std::size_t& hash ) { diff --git a/dali/devel-api/common/hash.h b/dali/devel-api/common/hash.h index 246907b..47b364f 100644 --- a/dali/devel-api/common/hash.h +++ b/dali/devel-api/common/hash.h @@ -27,6 +27,8 @@ namespace Dali { +const std::size_t INITIAL_HASH_VALUE = 5381; + /** * @brief Create a hash code for a string * @param toHash string to hash -- 2.7.4