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:
authorHieu Hoang <hieu@hoang.co.uk>2013-05-29 21:16:15 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-05-29 21:16:15 +0400
commit6249432407af8730c10bccc7894c0725fcaf5e47 (patch)
tree3ac1f094b9fdc199b04bc5ef209ce00e3596e37d /mert/FileStream.cpp
parent59bd7deb4b6b9c4f7b3b7dbb055783528fbc31ca (diff)
beautify
Diffstat (limited to 'mert/FileStream.cpp')
-rw-r--r--mert/FileStream.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/mert/FileStream.cpp b/mert/FileStream.cpp
index 1a52e53fa..800ce1bfe 100644
--- a/mert/FileStream.cpp
+++ b/mert/FileStream.cpp
@@ -5,15 +5,17 @@
using namespace std;
-namespace {
-bool IsGzipFile(const std::string &filename) {
+namespace
+{
+bool IsGzipFile(const std::string &filename)
+{
return filename.size() > 3 &&
- filename.substr(filename.size() - 3, 3) == ".gz";
+ filename.substr(filename.size() - 3, 3) == ".gz";
}
} // namespace
inputfilestream::inputfilestream(const std::string &filePath)
- : std::istream(0), m_streambuf(0), m_is_good(false)
+ : std::istream(0), m_streambuf(0), m_is_good(false)
{
// check if file is readable
std::filebuf* fb = new std::filebuf();
@@ -40,7 +42,7 @@ void inputfilestream::close()
}
outputfilestream::outputfilestream(const std::string &filePath)
- : std::ostream(0), m_streambuf(0), m_is_good(false)
+ : std::ostream(0), m_streambuf(0), m_is_good(false)
{
// check if file is readable
std::filebuf* fb = new std::filebuf();