diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-16 15:53:33 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-16 15:53:33 +0300 |
commit | 786258cb288e0711a2614bfd36d5ec83353ab5c2 (patch) | |
tree | fd7d35c8d21552c9c56ea0b5de98495ab734d5ba /moses/FF/ControlRecombination.cpp | |
parent | b9dcb55be22f9a5d229b817827d0ee02c82d311e (diff) |
beautify
Diffstat (limited to 'moses/FF/ControlRecombination.cpp')
-rw-r--r-- | moses/FF/ControlRecombination.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/moses/FF/ControlRecombination.cpp b/moses/FF/ControlRecombination.cpp index 774446c7b..3ed4df36b 100644 --- a/moses/FF/ControlRecombination.cpp +++ b/moses/FF/ControlRecombination.cpp @@ -52,11 +52,10 @@ size_t ControlRecombinationState::hash() const { size_t ret; if (m_ff.GetType() == SameOutput) { - ret = hash_value(m_outputPhrase); - } - else { + ret = hash_value(m_outputPhrase); + } else { // compare hypo address. Won't be equal unless they're actually the same hypo - ret = (size_t) m_hypo; + ret = (size_t) m_hypo; } return ret; } @@ -66,13 +65,13 @@ bool ControlRecombinationState::operator==(const FFState& other) const const ControlRecombinationState &otherFF = static_cast<const ControlRecombinationState&>(other); if (m_ff.GetType() == SameOutput) { - int ret = m_outputPhrase.Compare(otherFF.m_outputPhrase); - return ret == 0; + int ret = m_outputPhrase.Compare(otherFF.m_outputPhrase); + return ret == 0; } else { - // compare hypo address. Won't be equal unless they're actually the same hypo - if (m_hypo == otherFF.m_hypo) - return true; - return (m_hypo == otherFF.m_hypo); + // compare hypo address. Won't be equal unless they're actually the same hypo + if (m_hypo == otherFF.m_hypo) + return true; + return (m_hypo == otherFF.m_hypo); } } |