diff options
author | Nico Weber <nicolasweber@gmx.de> | 2015-01-04 02:50:32 (GMT) |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2015-01-04 03:14:41 (GMT) |
commit | 88379d989d2a57cd46b2389751590b3ddc4ebef2 (patch) | |
tree | eddf4c097ef6244e31eb49c2b059addf014fa27d /src | |
parent | 2e922960014e43dd63bd9f8384836d7fd191d1ff (diff) | |
download | Ninja-88379d989d2a57cd46b2389751590b3ddc4ebef2.zip Ninja-88379d989d2a57cd46b2389751590b3ddc4ebef2.tar.gz Ninja-88379d989d2a57cd46b2389751590b3ddc4ebef2.tar.bz2 |
Try to simplify d1e6a29 a bit.
Diffstat (limited to 'src')
-rw-r--r-- | src/hash_map.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hash_map.h b/src/hash_map.h index b57a631..abdba92 100644 --- a/src/hash_map.h +++ b/src/hash_map.h @@ -57,10 +57,10 @@ namespace std { template<> struct hash<StringPiece> { typedef StringPiece argument_type; - typedef std::size_t result_type; + typedef size_t result_type; - result_type operator()(argument_type const& s) const { - return MurmurHash2(s.str_, s.len_); + size_t operator()(StringPiece key) const { + return MurmurHash2(key.str_, key.len_); } }; } |