diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-05-29 21:16:15 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-05-29 21:16:15 +0400 |
commit | 6249432407af8730c10bccc7894c0725fcaf5e47 (patch) | |
tree | 3ac1f094b9fdc199b04bc5ef209ce00e3596e37d /moses/TranslationOption.h | |
parent | 59bd7deb4b6b9c4f7b3b7dbb055783528fbc31ca (diff) |
beautify
Diffstat (limited to 'moses/TranslationOption.h')
-rw-r--r-- | moses/TranslationOption.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/moses/TranslationOption.h b/moses/TranslationOption.h index 8e2064f83..b1de31eb1 100644 --- a/moses/TranslationOption.h +++ b/moses/TranslationOption.h @@ -146,18 +146,18 @@ public: void CacheLexReorderingScores(const LexicalReordering &scoreProducer, const Scores &score); TO_STRING(); - - bool operator== (const TranslationOption &rhs) const - { + + bool operator== (const TranslationOption &rhs) const { return m_sourceWordsRange == rhs.m_sourceWordsRange && - m_targetPhrase == rhs.m_targetPhrase; - } + m_targetPhrase == rhs.m_targetPhrase; + } }; //XXX: This doesn't look at the alignment. Is this correct? -inline size_t hash_value(const TranslationOption& translationOption) { +inline size_t hash_value(const TranslationOption& translationOption) +{ size_t seed = 0; boost::hash_combine(seed, translationOption.GetTargetPhrase()); boost::hash_combine(seed, translationOption.GetStartPos()); |