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/DistortionScoreProducer.cpp | |
parent | b9dcb55be22f9a5d229b817827d0ee02c82d311e (diff) |
beautify
Diffstat (limited to 'moses/FF/DistortionScoreProducer.cpp')
-rw-r--r-- | moses/FF/DistortionScoreProducer.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/moses/FF/DistortionScoreProducer.cpp b/moses/FF/DistortionScoreProducer.cpp index be0684fc6..9b696e9ce 100644 --- a/moses/FF/DistortionScoreProducer.cpp +++ b/moses/FF/DistortionScoreProducer.cpp @@ -21,15 +21,13 @@ struct DistortionState_traditional : public FFState { return 0; } - size_t hash() const - { - return range.GetEndPos(); + size_t hash() const { + return range.GetEndPos(); } - virtual bool operator==(const FFState& other) const - { + virtual bool operator==(const FFState& other) const { const DistortionState_traditional& o = static_cast<const DistortionState_traditional&>(other); - return range.GetEndPos() == o.range.GetEndPos(); + return range.GetEndPos() == o.range.GetEndPos(); } }; |