diff options
author | MosesAdmin <moses-support-owner@mit.edu> | 2015-10-18 02:00:38 +0300 |
---|---|---|
committer | MosesAdmin <moses-support-owner@mit.edu> | 2015-10-18 02:00:38 +0300 |
commit | 7e5fef7794512c6eb5d1969ce47b135e9a087b08 (patch) | |
tree | 07c5f6b70bf9a2278b7bf1681dadf35df7a8c9c3 /moses/Phrase.cpp | |
parent | 173d958f4de905572307131a2e10c67612a9b4da (diff) |
daily automatic beautifier
Diffstat (limited to 'moses/Phrase.cpp')
-rw-r--r-- | moses/Phrase.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/moses/Phrase.cpp b/moses/Phrase.cpp index d97f6d712..b53d11312 100644 --- a/moses/Phrase.cpp +++ b/moses/Phrase.cpp @@ -254,19 +254,20 @@ int Phrase::Compare(const Phrase &other) const return 0; } -bool Phrase::operator== (const Phrase &other) const { +bool Phrase::operator== (const Phrase &other) const +{ size_t thisSize = GetSize() - ,compareSize = other.GetSize(); + ,compareSize = other.GetSize(); if (thisSize != compareSize) { - return false; + return false; } for (size_t pos = 0 ; pos < thisSize ; pos++) { const Word &thisWord = GetWord(pos) - ,&otherWord = other.GetWord(pos); + ,&otherWord = other.GetWord(pos); bool ret = thisWord == otherWord; if (!ret) { - return false; + return false; } } |