WGRUPCON::read(): Don't shadow the name() method.
This commit is contained in:
parent
f8b3a8c3f9
commit
ab9ead475f
@ -1340,18 +1340,18 @@ struct WGRUPCON : public SpecialBase
|
|||||||
virtual void read(std::istream& is)
|
virtual void read(std::istream& is)
|
||||||
{
|
{
|
||||||
while(is) {
|
while(is) {
|
||||||
std::string name = readString(is);
|
std::string wname = readString(is);
|
||||||
if (name[0] == '/') {
|
if (wname[0] == '/') {
|
||||||
is >> ignoreLine;
|
is >> ignoreLine;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
while (name.find("--") == 0) {
|
while (wname.find("--") == 0) {
|
||||||
// This line is a comment
|
// This line is a comment
|
||||||
is >> ignoreLine;
|
is >> ignoreLine;
|
||||||
name = readString(is);
|
wname = readString(is);
|
||||||
}
|
}
|
||||||
WgrupconLine wgrupcon_line;
|
WgrupconLine wgrupcon_line;
|
||||||
wgrupcon_line.well_ = name;
|
wgrupcon_line.well_ = wname;
|
||||||
std::string available = readString(is);
|
std::string available = readString(is);
|
||||||
if (available[available.size()-1] == '*')
|
if (available[available.size()-1] == '*')
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user