diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-08-05 15:38:17 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-08-05 15:38:17 +0400 |
commit | 6872689bc236883d355359cd18a46265b5372fb2 (patch) | |
tree | 8251c1f62b45a0c3d27250598da92dbf2584ecc0 /moses/TranslationOption.h | |
parent | dbc545089b4692af44eefe2aee6ba776571aa8c3 (diff) |
TranslationOption::GetSourcePhrase() return a reference, not a pointer. It must always have the reference
Diffstat (limited to 'moses/TranslationOption.h')
-rw-r--r-- | moses/TranslationOption.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/TranslationOption.h b/moses/TranslationOption.h index 6e511a9e2..0d823949c 100644 --- a/moses/TranslationOption.h +++ b/moses/TranslationOption.h @@ -95,8 +95,8 @@ public: } /** returns source phrase */ - const Phrase *GetSourcePhrase() const { - return &(m_targetPhrase.GetSourcePhrase()); + const Phrase &GetSourcePhrase() const { + return m_targetPhrase.GetSourcePhrase(); } /** whether source span overlaps with those of a hypothesis */ |