summaryrefslogtreecommitdiffstats
path: root/src/hash_map.h
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2012-07-28 16:56:59 (GMT)
committerNico Weber <nicolasweber@gmx.de>2012-07-28 16:56:59 (GMT)
commit957a801ace27426f3ceb544449f882dba1924161 (patch)
tree6a212b102467312452e89dc5472c2e4230f1cbc6 /src/hash_map.h
parent3ab35e5403066f48117f442f9ba8853e70edab13 (diff)
downloadNinja-957a801ace27426f3ceb544449f882dba1924161.zip
Ninja-957a801ace27426f3ceb544449f882dba1924161.tar.gz
Ninja-957a801ace27426f3ceb544449f882dba1924161.tar.bz2
Revert "Make StringPiece data members private."
This reverts commit 904c9610fe66c4f4bd63a07d6f057c8603d24394. The commit caused issue #380, this revert fixes it. The revert also makes the test from the previous commit pass.
Diffstat (limited to 'src/hash_map.h')
-rw-r--r--src/hash_map.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hash_map.h b/src/hash_map.h
index ff2f7ba..658f699 100644
--- a/src/hash_map.h
+++ b/src/hash_map.h
@@ -86,7 +86,7 @@ struct hash<std::string> {
template<>
struct hash<StringPiece> {
size_t operator()(StringPiece key) const {
- return MurmurHash2(key.str(), key.len());
+ return MurmurHash2(key.str_, key.len_);
}
};