Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieu@hoang.co.uk>2013-08-05 15:38:17 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-08-05 15:38:17 +0400
commit6872689bc236883d355359cd18a46265b5372fb2 (patch)
tree8251c1f62b45a0c3d27250598da92dbf2584ecc0 /moses/TranslationOption.h
parentdbc545089b4692af44eefe2aee6ba776571aa8c3 (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.h4
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 */