diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-18 15:30:02 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-18 15:30:02 +0300 |
commit | f7839c42d5cf2de17e86ec16df5e2f541ba53c75 (patch) | |
tree | 9f2444fecd5ddff97cf4df7b47f2e748bb87a2a6 /moses/Phrase.cpp | |
parent | 7a2d372df6d04b16a860f6aada5514b884544ed3 (diff) |
beautify
Diffstat (limited to 'moses/Phrase.cpp')
-rw-r--r-- | moses/Phrase.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/moses/Phrase.cpp b/moses/Phrase.cpp index 055e161dd..7ab3464df 100644 --- a/moses/Phrase.cpp +++ b/moses/Phrase.cpp @@ -258,12 +258,13 @@ size_t Phrase::hash() const { size_t seed = 0; for (size_t i = 0; i < GetSize(); ++i) { - boost::hash_combine(seed, GetWord(i)); + boost::hash_combine(seed, GetWord(i)); } return seed; } -bool Phrase::operator== (const Phrase &other) const { +bool Phrase::operator== (const Phrase &other) const +{ size_t thisSize = GetSize() ,compareSize = other.GetSize(); if (thisSize != compareSize) { |