From 89c2df558ca3533369586d8d4e2c7451b2d2732e Mon Sep 17 00:00:00 2001 From: MosesAdmin Date: Sun, 14 Jun 2015 00:00:44 +0100 Subject: daily automatic beautifier --- phrase-extract/extract-mixed-syntax/gzfilebuf.h | 3 ++- phrase-extract/gzfilebuf.h | 3 ++- phrase-extract/lexical-reordering/gzfilebuf.h | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) mode change 100755 => 100644 phrase-extract/lexical-reordering/gzfilebuf.h (limited to 'phrase-extract') diff --git a/phrase-extract/extract-mixed-syntax/gzfilebuf.h b/phrase-extract/extract-mixed-syntax/gzfilebuf.h index 4c818ddbb..e070da306 100644 --- a/phrase-extract/extract-mixed-syntax/gzfilebuf.h +++ b/phrase-extract/extract-mixed-syntax/gzfilebuf.h @@ -12,7 +12,8 @@ public: gzfilebuf(const char *filename) { _gzf = gzopen(filename, "rb"); if (!_gzf) - throw std::runtime_error("Could not open " + std::string(filename) + "."); setg (_buff+sizeof(int), // beginning of putback area + throw std::runtime_error("Could not open " + std::string(filename) + "."); + setg (_buff+sizeof(int), // beginning of putback area _buff+sizeof(int), // read position _buff+sizeof(int)); // end position } diff --git a/phrase-extract/gzfilebuf.h b/phrase-extract/gzfilebuf.h index 4c818ddbb..e070da306 100644 --- a/phrase-extract/gzfilebuf.h +++ b/phrase-extract/gzfilebuf.h @@ -12,7 +12,8 @@ public: gzfilebuf(const char *filename) { _gzf = gzopen(filename, "rb"); if (!_gzf) - throw std::runtime_error("Could not open " + std::string(filename) + "."); setg (_buff+sizeof(int), // beginning of putback area + throw std::runtime_error("Could not open " + std::string(filename) + "."); + setg (_buff+sizeof(int), // beginning of putback area _buff+sizeof(int), // read position _buff+sizeof(int)); // end position } diff --git a/phrase-extract/lexical-reordering/gzfilebuf.h b/phrase-extract/lexical-reordering/gzfilebuf.h old mode 100755 new mode 100644 index 4c818ddbb..e070da306 --- a/phrase-extract/lexical-reordering/gzfilebuf.h +++ b/phrase-extract/lexical-reordering/gzfilebuf.h @@ -12,7 +12,8 @@ public: gzfilebuf(const char *filename) { _gzf = gzopen(filename, "rb"); if (!_gzf) - throw std::runtime_error("Could not open " + std::string(filename) + "."); setg (_buff+sizeof(int), // beginning of putback area + throw std::runtime_error("Could not open " + std::string(filename) + "."); + setg (_buff+sizeof(int), // beginning of putback area _buff+sizeof(int), // read position _buff+sizeof(int)); // end position } -- cgit v1.2.3