diff --git a/Applications/FileIO/TetGenInterface.cpp b/Applications/FileIO/TetGenInterface.cpp index 1353b6714973232a7586206bbda936820a7857f1..02c72f578d5484089c52eeecf0cc366b7b8ca772 100644 --- a/Applications/FileIO/TetGenInterface.cpp +++ b/Applications/FileIO/TetGenInterface.cpp @@ -329,7 +329,7 @@ bool TetGenInterface::parseNodes(std::ifstream &ins, while (k < n_nodes && !ins.fail()) { std::vector<double> coordinates(dim); - getline(ins, line); + std::getline(ins, line); if (ins.fail()) { ERR("TetGenInterface::parseNodes(): Error reading node %d.", k); @@ -390,7 +390,7 @@ bool TetGenInterface::readElementsFromStream(std::ifstream &ins, const std::vector<MeshLib::Node*> &nodes) const { std::string line; - getline (ins, line); + std::getline(ins, line); std::size_t n_tets; std::size_t n_nodes_per_tet; bool region_attributes; @@ -401,7 +401,7 @@ bool TetGenInterface::readElementsFromStream(std::ifstream &ins, if (line.empty() || line.compare(0,1,"#") == 0) { // this line is a comment - skip - getline (ins, line); + std::getline(ins, line); continue; } diff --git a/GeoLib/SensorData.cpp b/GeoLib/SensorData.cpp index 7de16a8b5cc309ed9d93e0c3eb64bed14e9ebfe9..76da59134ff09a06950a37a226b588c35eb26a6b 100644 --- a/GeoLib/SensorData.cpp +++ b/GeoLib/SensorData.cpp @@ -103,7 +103,7 @@ int SensorData::readDataFromFile(const std::string &file_name) std::string line; /* first line contains field names */ - getline(in, line); + std::getline(in, line); std::list<std::string> fields = BaseLib::splitString(line, '\t'); std::list<std::string>::const_iterator it (fields.begin()); std::size_t nFields = fields.size(); @@ -124,7 +124,7 @@ int SensorData::readDataFromFile(const std::string &file_name) this->_data_vecs.push_back(data); } - while ( getline(in, line) ) + while (std::getline(in, line)) { fields = BaseLib::splitString(line, '\t'); diff --git a/GeoLib/StationBorehole.cpp b/GeoLib/StationBorehole.cpp index 38e0c80f8010d219a3cb13914c67306d645f3b4b..20ca3c5cf5490dbf839cdd1535acd231e8c746f7 100644 --- a/GeoLib/StationBorehole.cpp +++ b/GeoLib/StationBorehole.cpp @@ -66,7 +66,7 @@ int StationBorehole::readStratigraphyFile(const std::string &path, return 0; } - while ( getline(in, line) ) + while (std::getline(in, line)) { std::list<std::string> fields = BaseLib::splitString(line, '\t'); data.push_back(fields);