2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 14:05:33 +00:00

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

This commit is contained in:
Mukund Sivaraman
2012-11-04 21:40:33 +05:30
parent 9f5232047b
commit ed1a2ad7df
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -135,7 +135,7 @@ private:
size_t buffer_pos_;
const std::string name_;
std::fstream file_stream_;
std::ifstream file_stream_;
std::istream& input_;
};