fixed stripping of comments from configuration streams.
This commit is contained in:
parent
2e931a4fd9
commit
2ea3d66112
|
@ -277,7 +277,7 @@ bool CConfig::readLine(std::istream& s, CString& line)
|
|||
s >> std::ws;
|
||||
while (std::getline(s, line)) {
|
||||
// strip comments and then trailing whitespace
|
||||
CString::size_type i = line.rfind('#');
|
||||
CString::size_type i = line.find('#');
|
||||
if (i != CString::npos) {
|
||||
line.erase(i);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue