diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-04-29 21:46:48 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-04-29 21:46:48 +0400 |
commit | ce95c117f6ca765958e533d1e2d5e3175e2346a1 (patch) | |
tree | 2e63c68b11bd0e101250dc3f7de54d444288a400 /moses/Phrase.cpp | |
parent | f5d3f16fab07f22cb1ca9070d33e413fd0aa0f3f (diff) | |
parent | 972001e345573e9c193b035f1ed016e8721606ca (diff) |
merge
Diffstat (limited to 'moses/Phrase.cpp')
-rw-r--r-- | moses/Phrase.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/Phrase.cpp b/moses/Phrase.cpp index a19c1fb5e..d4418b97a 100644 --- a/moses/Phrase.cpp +++ b/moses/Phrase.cpp @@ -257,8 +257,8 @@ bool Phrase::Contains(const vector< vector<string> > &subPhraseVector FactorType factorType = inputFactor[currFactorIndex]; for (size_t currSubPos = 0 ; currSubPos < subSize ; currSubPos++) { size_t currThisPos = currSubPos + currStartPos; - const string &subStr = subPhraseVector[currSubPos][currFactorIndex] - ,&thisStr = GetFactor(currThisPos, factorType)->GetString(); + const string &subStr = subPhraseVector[currSubPos][currFactorIndex]; + StringPiece thisStr = GetFactor(currThisPos, factorType)->GetString(); if (subStr != thisStr) { match = false; break; |