diff options
author | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-03-10 12:12:34 +0400 |
---|---|---|
committer | Tetsuo Kiso <tetsuo-s@is.naist.jp> | 2012-03-10 12:12:34 +0400 |
commit | eb2c9ee5e3e4ed76dd9b155c1b509a22d5ab7f4f (patch) | |
tree | 60dd9e1fc444391437237df6a68b2806d1156446 /mert/FileStream.cpp | |
parent | e4063b0f3b46ebc8a1d9900110e49a09f5241bab (diff) |
mert: Prefix private members with "m_" except TER.
Squashed commit of the following:
- Clean up PRO.
- Clean up ScoreStats.
- Clean up ScoreData.
- Clean up ScoreArray.
- Remove unnecessary headers.
- Clean up ScopedVector.
- Clean up Point.
- Clean up PerScorer.
- Clean up Optimizer.
- Clean up MergeScorer.
- Clean up InterpolatedScorer.
- Clean up FileStream.
- Clean up FeatureStats.
- Remove inefficient string concatenation.
- Clean up FeatureData.
- Clean up FeatureArray.
- Clean up Data.
Diffstat (limited to 'mert/FileStream.cpp')
-rw-r--r-- | mert/FileStream.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mert/FileStream.cpp b/mert/FileStream.cpp index 11fd58e26..93b7138b2 100644 --- a/mert/FileStream.cpp +++ b/mert/FileStream.cpp @@ -13,11 +13,11 @@ bool IsGzipFile(const std::string &filename) { } // namespace inputfilestream::inputfilestream(const std::string &filePath) - : std::istream(0), m_streambuf(0), is_good(false) + : std::istream(0), m_streambuf(0), m_is_good(false) { // check if file is readable std::filebuf* fb = new std::filebuf(); - is_good = (fb->open(filePath.c_str(), std::ios::in) != NULL); + m_is_good = (fb->open(filePath.c_str(), std::ios::in) != NULL); if (IsGzipFile(filePath)) { fb->close(); @@ -40,11 +40,11 @@ void inputfilestream::close() } outputfilestream::outputfilestream(const std::string &filePath) - : std::ostream(0), m_streambuf(0), is_good(false) + : std::ostream(0), m_streambuf(0), m_is_good(false) { // check if file is readable std::filebuf* fb = new std::filebuf(); - is_good = (fb->open(filePath.c_str(), std::ios::out) != NULL); + m_is_good = (fb->open(filePath.c_str(), std::ios::out) != NULL); if (IsGzipFile(filePath)) { throw runtime_error("Output to a zipped file not supported!"); |