diff options
author | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-12-12 19:23:37 +0300 |
---|---|---|
committer | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-12-14 01:31:43 +0300 |
commit | bb6e0157aac67e72b4aacbb87405014da552e140 (patch) | |
tree | 0fddd3da357960f41450378f48f033596ba34999 /moses/TranslationOptionCollectionText.cpp | |
parent | b899ab8175d5bb3733aa65a0658633c86aa2e237 (diff) |
Code cleanup and refactoring.
Diffstat (limited to 'moses/TranslationOptionCollectionText.cpp')
-rw-r--r-- | moses/TranslationOptionCollectionText.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/TranslationOptionCollectionText.cpp b/moses/TranslationOptionCollectionText.cpp index 27b3353a6..f0fee0763 100644 --- a/moses/TranslationOptionCollectionText.cpp +++ b/moses/TranslationOptionCollectionText.cpp @@ -56,11 +56,11 @@ TranslationOptionCollectionText(ttasksptr const& ttask, Sentence const &input) InputPath *path; if (range.GetNumWordsCovered() == 1) { - path = new InputPath(ttask, subphrase, labels, range, NULL, NULL); + path = new InputPath(ttask.get(), subphrase, labels, range, NULL, NULL); vec.push_back(path); } else { const InputPath &prevPath = GetInputPath(startPos, endPos - 1); - path = new InputPath(ttask, subphrase, labels, range, &prevPath, NULL); + path = new InputPath(ttask.get(), subphrase, labels, range, &prevPath, NULL); vec.push_back(path); } |