diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-26 14:59:20 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2015-10-26 14:59:20 +0300 |
commit | 20e3827ed20365d96dad27c751596613da0a2370 (patch) | |
tree | 21c217e3bde16f1f0c861da1d7c073853779abf0 /moses/SearchNormal.cpp | |
parent | a811166a1acadfa3f6adef0625fb29a505ac356e (diff) |
make Bitmap constructor explicit in case we accidently create a copy during cube pruning algorithm
Diffstat (limited to 'moses/SearchNormal.cpp')
-rw-r--r-- | moses/SearchNormal.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/moses/SearchNormal.cpp b/moses/SearchNormal.cpp index bc8be525f..62bf420fc 100644 --- a/moses/SearchNormal.cpp +++ b/moses/SearchNormal.cpp @@ -112,7 +112,7 @@ ProcessOneHypothesis(const Hypothesis &hypothesis) // int maxDistortion = StaticData::Instance().GetMaxDistortion(); bool isWordLattice = m_source.GetType() == WordLatticeInput; - const Bitmap hypoBitmap = hypothesis.GetWordsBitmap(); + const Bitmap &hypoBitmap = hypothesis.GetWordsBitmap(); const size_t hypoFirstGapPos = hypoBitmap.GetFirstGapPos(); size_t const sourceSize = m_source.GetSize(); |