diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-08-09 21:16:31 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-08-09 21:16:31 +0400 |
commit | a867063a3bd0996c5e204f0e2639e3f983b5f78f (patch) | |
tree | 9e13d62777d0609d693085ac4047b7f2f166af58 /moses/ChartHypothesis.cpp | |
parent | 4db9aa2973bee8e8785ba0bb9517bbb1d66ac297 (diff) |
convert to using shared pointers in ChartTranslationOptions
Diffstat (limited to 'moses/ChartHypothesis.cpp')
-rw-r--r-- | moses/ChartHypothesis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/moses/ChartHypothesis.cpp b/moses/ChartHypothesis.cpp index 7db4a7ae1..02c486ad3 100644 --- a/moses/ChartHypothesis.cpp +++ b/moses/ChartHypothesis.cpp @@ -47,7 +47,7 @@ ObjectPool<ChartHypothesis> ChartHypothesis::s_objectPool("ChartHypothesis", 300 ChartHypothesis::ChartHypothesis(const ChartTranslationOptions &transOpt, const RuleCubeItem &item, ChartManager &manager) - :m_targetPhrase(*(item.GetTranslationDimension().GetTargetPhrase())) + :m_targetPhrase(item.GetTranslationDimension().GetTargetPhrase()) ,m_currSourceWordsRange(transOpt.GetSourceWordsRange()) ,m_ffStates(StatefulFeatureFunction::GetStatefulFeatureFunctions().size()) ,m_arcList(NULL) |