summaryrefslogtreecommitdiff
path: root/src/mbgl/util
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2018-10-19 15:51:58 +0200
committerKonstantin Käfer <mail@kkaefer.com>2018-10-23 12:23:40 +0200
commit9afe75aa76c02db21209e8f92b09be4b596a3983 (patch)
tree747d6fdd27550bf058dba6445794a7513761b6ad /src/mbgl/util
parent7692be5d1571f2c02303aec1eb27432f634d0db2 (diff)
downloadqtlocation-mapboxgl-9afe75aa76c02db21209e8f92b09be4b596a3983.tar.gz
[core] address nits
Diffstat (limited to 'src/mbgl/util')
-rw-r--r--src/mbgl/util/hash.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/util/hash.hpp b/src/mbgl/util/hash.hpp
index 987a8bd8dc..89aba00f72 100644
--- a/src/mbgl/util/hash.hpp
+++ b/src/mbgl/util/hash.hpp
@@ -8,12 +8,12 @@ namespace mbgl {
namespace util {
template <class T>
-inline void hash_combine(std::size_t& seed, const T& v) {
+void hash_combine(std::size_t& seed, const T& v) {
seed ^= std::hash<T>()(v) + 0x9e3779b9 + (seed << 6) + (seed >> 2);
}
template <class... Args>
-inline std::size_t hash(Args&&... args) {
+std::size_t hash(Args&&... args) {
std::size_t seed = 0;
ignore({ (hash_combine(seed, args), 0)... });
return seed;