LocalPlayer::accelerateHorizontal: cleanups
[oweals/minetest.git] / src / face_position_cache.cpp
index f57e75da9ac390add186549ba915a7d18814b1ba..e6dd12170f8019ebaca8a8ee1e15752e2932ab1d 100644 (file)
@@ -21,14 +21,14 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "threading/mutex_auto_lock.h"
 
 
-UNORDERED_MAP<u16, std::vector<v3s16> > FacePositionCache::cache;
-Mutex FacePositionCache::cache_mutex;
+std::unordered_map<u16, std::vector<v3s16>> FacePositionCache::cache;
+std::mutex FacePositionCache::cache_mutex;
 
 // Calculate the borders of a "d-radius" cube
 const std::vector<v3s16> &FacePositionCache::getFacePositions(u16 d)
 {
        MutexAutoLock lock(cache_mutex);
-       UNORDERED_MAP<u16, std::vector<v3s16> >::iterator it = cache.find(d);
+       std::unordered_map<u16, std::vector<v3s16>>::const_iterator it = cache.find(d);
        if (it != cache.end())
                return it->second;