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 <hieuhoang@gmail.com>2015-10-26 14:59:20 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-10-26 14:59:20 +0300
commit20e3827ed20365d96dad27c751596613da0a2370 (patch)
tree21c217e3bde16f1f0c861da1d7c073853779abf0 /moses/SearchNormal.cpp
parenta811166a1acadfa3f6adef0625fb29a505ac356e (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.cpp2
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();