diff options
Diffstat (limited to 'moses/RuleCubeItem.h')
-rw-r--r-- | moses/RuleCubeItem.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/moses/RuleCubeItem.h b/moses/RuleCubeItem.h index 2c086f0b3..0abc905f7 100644 --- a/moses/RuleCubeItem.h +++ b/moses/RuleCubeItem.h @@ -53,16 +53,16 @@ public: return m_pos+1 < m_orderedTargetPhrases.size(); } - const boost::shared_ptr<ChartTranslationOption> &GetTargetPhrase() const { + const boost::shared_ptr<ChartTranslationOption> &GetTranslationOption() const { return m_orderedTargetPhrases[m_pos]; } bool operator<(const TranslationDimension &compare) const { - return GetTargetPhrase() < compare.GetTargetPhrase(); + return GetTranslationOption()->GetPhrase() < compare.GetTranslationOption()->GetPhrase(); } bool operator==(const TranslationDimension &compare) const { - return GetTargetPhrase() == compare.GetTargetPhrase(); + return GetTranslationOption()->GetPhrase() == compare.GetTranslationOption()->GetPhrase(); } private: |