mirror of https://github.com/CGAL/cgal
Merge pull request #6454 from afabri/Stream_support-call_string_clear-GF
Stream_support: Make line a data member and call clear()
This commit is contained in:
commit
362c30f1bd
|
|
@ -37,6 +37,7 @@ class File_scanner_OFF
|
||||||
std::vector<double> entries;
|
std::vector<double> entries;
|
||||||
std::size_t color_entries;
|
std::size_t color_entries;
|
||||||
std::size_t first_color_index;
|
std::size_t first_color_index;
|
||||||
|
std::string line;
|
||||||
std::istream& m_in;
|
std::istream& m_in;
|
||||||
bool normals_read;
|
bool normals_read;
|
||||||
|
|
||||||
|
|
@ -78,7 +79,7 @@ public:
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
skip_comment();
|
skip_comment();
|
||||||
std::string line;
|
line.clear();
|
||||||
std::getline(m_in, line);
|
std::getline(m_in, line);
|
||||||
// First remove the comment if there is one
|
// First remove the comment if there is one
|
||||||
std::size_t pos = line.find('#');
|
std::size_t pos = line.find('#');
|
||||||
|
|
@ -692,7 +693,7 @@ public:
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
skip_comment();
|
skip_comment();
|
||||||
std::string line;
|
line.clear();
|
||||||
std::getline(m_in, line);
|
std::getline(m_in, line);
|
||||||
// First remove the comment if there is one
|
// First remove the comment if there is one
|
||||||
std::size_t pos = line.find('#');
|
std::size_t pos = line.find('#');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue