mirror of https://github.com/debauchee/barrier.git
Worked around bug in ifstream::operator!() on OS X.
This commit is contained in:
parent
3d2fa92654
commit
cf3647f7cc
|
@ -814,7 +814,7 @@ loadConfig(const CString& pathname)
|
||||||
// load configuration
|
// load configuration
|
||||||
LOG((CLOG_DEBUG "opening configuration \"%s\"", pathname.c_str()));
|
LOG((CLOG_DEBUG "opening configuration \"%s\"", pathname.c_str()));
|
||||||
std::ifstream configStream(pathname.c_str());
|
std::ifstream configStream(pathname.c_str());
|
||||||
if (!configStream) {
|
if (!configStream.is_open()) {
|
||||||
throw XConfigRead("cannot open file");
|
throw XConfigRead("cannot open file");
|
||||||
}
|
}
|
||||||
configStream >> *ARG->m_config;
|
configStream >> *ARG->m_config;
|
||||||
|
|
Loading…
Reference in New Issue