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:
authorJeroen Vermeulen <jtv@precisiontranslationtools.com>2015-05-01 14:42:04 +0300
committerJeroen Vermeulen <jtv@precisiontranslationtools.com>2015-05-01 14:42:04 +0300
commit09c982c1de248656fe9be129ded8fd3846c89fda (patch)
treef695ee9198dc59dfa8fd983c8e01adaf9c18694e /phrase-extract
parentdab63e80761e3bb232a8c8cdf775f75d8b426171 (diff)
Remove bad initialization.
Setting lastLine[0] when lastLine is empty probably doesn't do anything, but in C++11 is definitely undefined. The value wasn't used anyway!
Diffstat (limited to 'phrase-extract')
-rw-r--r--phrase-extract/score-main.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/phrase-extract/score-main.cpp b/phrase-extract/score-main.cpp
index d56b8f379..53e4ab501 100644
--- a/phrase-extract/score-main.cpp
+++ b/phrase-extract/score-main.cpp
@@ -315,7 +315,6 @@ int main(int argc, char* argv[])
// loop through all extracted phrase translations
std::string line, lastLine;
- lastLine[0] = '\0';
ExtractionPhrasePair *phrasePair = NULL;
std::vector< ExtractionPhrasePair* > phrasePairsWithSameSource;
std::vector< ExtractionPhrasePair* > phrasePairsWithSameSourceAndTarget; // required for hierarchical rules only, as non-terminal alignments might make the phrases incompatible