* accept Strings, so we're left with this conditional compilation.
*/
# ifdef FUNCTIONAL_HASH_ON_STRING
- HASH_MAP_NAMESPACE::hash<const String&> string_hash_;
+ HASH_MAP_NAMESPACE::hash<String> string_hash_;
const unsigned int seed(string_hash_(str));
# else // FUNCTIONAL_HASH_ON_STRING
HASH_MAP_NAMESPACE::hash<const char*> string_hash_;
class StringHash
{
# ifdef FUNCTIONAL_HASH_ON_STRING
- HASH_MAP_NAMESPACE::hash<const synfig::String&> hasher_;
+ HASH_MAP_NAMESPACE::hash<synfig::String> hasher_;
# else // FUNCTIONAL_HASH_ON_STRING
HASH_MAP_NAMESPACE::hash<const char*> hasher_;
# endif // FUNCTIONAL_HASH_ON_STRING
class StringHash
{
# ifdef FUNCTIONAL_HASH_ON_STRING
- HASH_MAP_NAMESPACE::hash<const synfig::String&> hasher_;
+ HASH_MAP_NAMESPACE::hash<synfig::String> hasher_;
# else // FUNCTIONAL_HASH_ON_STRING
HASH_MAP_NAMESPACE::hash<const char*> hasher_;
# endif // FUNCTIONAL_HASH_ON_STRING