From 4676bca90ff8e67df4c3c034153a70dc25585d4c Mon Sep 17 00:00:00 2001 From: Hieu Hoang Date: Tue, 13 Aug 2013 10:33:04 +0100 Subject: minor renaming --- moses/RuleCubeItem.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'moses/RuleCubeItem.h') 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 &GetTargetPhrase() const { + const boost::shared_ptr &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: -- cgit v1.2.3