Commit ed1a2ad7 authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[2369] Use the more specialized std::ifstream instead of std::fstream

parent 9f523204
...@@ -46,7 +46,7 @@ InputSource::InputSource(const char* filename) : ...@@ -46,7 +46,7 @@ InputSource::InputSource(const char* filename) :
name_(filename), name_(filename),
input_(file_stream_) input_(file_stream_)
{ {
file_stream_.open(filename, std::fstream::in); file_stream_.open(filename);
if (file_stream_.fail()) { if (file_stream_.fail()) {
isc_throw(OpenError, isc_throw(OpenError,
"Error opening the input source file: " << filename); "Error opening the input source file: " << filename);
......
...@@ -135,7 +135,7 @@ private: ...@@ -135,7 +135,7 @@ private:
size_t buffer_pos_; size_t buffer_pos_;
const std::string name_; const std::string name_;
std::fstream file_stream_; std::ifstream file_stream_;
std::istream& input_; std::istream& input_;
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment