From 9849e12bd1c0dbca5fe1288fb5e3d10ac42884a2 Mon Sep 17 00:00:00 2001 From: cignoni Date: Tue, 13 Jan 2009 15:52:27 +0000 Subject: [PATCH] removed nasty useless undefs --- vcg/space/index/spatial_hashing.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/vcg/space/index/spatial_hashing.h b/vcg/space/index/spatial_hashing.h index a927bda6..0f01b135 100644 --- a/vcg/space/index/spatial_hashing.h +++ b/vcg/space/index/spatial_hashing.h @@ -52,11 +52,11 @@ namespace vcg{ { size_t operator()(const Point3i &p) const { - static const size_t HASH_P0=73856093u; - static const size_t HASH_P1=19349663u; - static const size_t HASH_P2=83492791u; + const size_t _HASH_P0 = 73856093u; + const size_t _HASH_P1 = 19349663u; + const size_t _HASH_P2 = 83492791u; - return size_t(p.V(0))*HASH_P0 ^ size_t(p.V(1))*HASH_P1 ^ size_t(p.V(2))*HASH_P2; + return size_t(p.V(0))*_HASH_P0 ^ size_t(p.V(1))*_HASH_P1 ^ size_t(p.V(2))*_HASH_P2; } }; @@ -300,8 +300,4 @@ namespace vcg{ }// end namespace -#undef HASH_P0 -#undef HASH_P1 -#undef HASH_P2 - #endif