From ed1a2ad7dfa4d0c87e9ab3fa446acdbc29f6cc24 Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Sun, 4 Nov 2012 21:40:33 +0530 Subject: [PATCH] [2369] Use the more specialized std::ifstream instead of std::fstream --- src/lib/dns/master_lexer_inputsource.cc | 2 +- src/lib/dns/master_lexer_inputsource.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/dns/master_lexer_inputsource.cc b/src/lib/dns/master_lexer_inputsource.cc index f38d6c3a53..6c43dc1c56 100644 --- a/src/lib/dns/master_lexer_inputsource.cc +++ b/src/lib/dns/master_lexer_inputsource.cc @@ -46,7 +46,7 @@ InputSource::InputSource(const char* filename) : name_(filename), input_(file_stream_) { - file_stream_.open(filename, std::fstream::in); + file_stream_.open(filename); if (file_stream_.fail()) { isc_throw(OpenError, "Error opening the input source file: " << filename); diff --git a/src/lib/dns/master_lexer_inputsource.h b/src/lib/dns/master_lexer_inputsource.h index b7eee5f11c..136e8097a8 100644 --- a/src/lib/dns/master_lexer_inputsource.h +++ b/src/lib/dns/master_lexer_inputsource.h @@ -135,7 +135,7 @@ private: size_t buffer_pos_; const std::string name_; - std::fstream file_stream_; + std::ifstream file_stream_; std::istream& input_; };