diff options
author | Phil Williams <philip.williams@mac.com> | 2015-06-19 17:58:14 +0300 |
---|---|---|
committer | Phil Williams <philip.williams@mac.com> | 2015-06-19 17:58:14 +0300 |
commit | 90470e878d7ee150baafbb718ee6a402f641c9a5 (patch) | |
tree | dfcabc217546708af25b4b996586ee9e42334fbb /phrase-extract | |
parent | f29f67710e980db7f965b9b2e849b7c14dcf338d (diff) |
Fix some C++11-related compilation errors (clang)
Diffstat (limited to 'phrase-extract')
-rw-r--r-- | phrase-extract/extract-mixed-syntax/Main.cpp | 7 |
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"; } |