diff options
author | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-12-10 02:05:00 +0300 |
---|---|---|
committer | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-12-10 02:05:00 +0300 |
commit | 240b88c6834c9c94e8a6448a34dc4ad33bdf3fbd (patch) | |
tree | e9f43dba3717e8a430557c16a1d6543a13628ddf /moses/ChartParser.cpp | |
parent | ad5e27ae56298564dfd73637c160a682b5f5f028 (diff) |
Passing around AllOptions or references thereto everywhere,
strong them locally where appropriate, so that compontents can
become independent of StaticData once instantiated.
Diffstat (limited to 'moses/ChartParser.cpp')
-rw-r--r-- | moses/ChartParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/moses/ChartParser.cpp b/moses/ChartParser.cpp index 66e6cbe97..2b49c9508 100644 --- a/moses/ChartParser.cpp +++ b/moses/ChartParser.cpp @@ -214,7 +214,7 @@ void ChartParser::Create(const Range &range, ChartParserCallback &to) if (range.GetNumWordsCovered() == 1 && range.GetStartPos() != 0 && range.GetStartPos() != m_source.GetSize()-1) { - bool always = m_ttask.lock()->options().unk.always_create_direct_transopt; + bool always = m_ttask.lock()->options()->unk.always_create_direct_transopt; // bool alwaysCreateDirectTranslationOption // = StaticData::Instance().IsAlwaysCreateDirectTranslationOption(); if (to.Empty() || always) { |