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:
authorPhil Williams <philip.williams@mac.com>2015-06-19 17:58:14 +0300
committerPhil Williams <philip.williams@mac.com>2015-06-19 17:58:14 +0300
commit90470e878d7ee150baafbb718ee6a402f641c9a5 (patch)
treedfcabc217546708af25b4b996586ee9e42334fbb /phrase-extract
parentf29f67710e980db7f965b9b2e849b7c14dcf338d (diff)
Fix some C++11-related compilation errors (clang)
Diffstat (limited to 'phrase-extract')
-rw-r--r--phrase-extract/extract-mixed-syntax/Main.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/phrase-extract/extract-mixed-syntax/Main.cpp b/phrase-extract/extract-mixed-syntax/Main.cpp
index 5d1b3e7f5..f011e6e8d 100644
--- a/phrase-extract/extract-mixed-syntax/Main.cpp
+++ b/phrase-extract/extract-mixed-syntax/Main.cpp
@@ -148,13 +148,10 @@ int main(int argc, char** argv)
cerr << lineNum << " ";
}
- bool success;
- success = getline(strmSource, lineSource);
- if (!success) {
+ if (!getline(strmSource, lineSource)) {
throw "Couldn't read source";
}
- success = getline(strmAlignment, lineAlignment);
- if (!success) {
+ if (!getline(strmAlignment, lineAlignment)) {
throw "Couldn't read alignment";
}