Worked around bug in ifstream::operator!() on OS X.

This commit is contained in:
crs 2004-07-29 22:09:28 +00:00
parent 3d2fa92654
commit cf3647f7cc
1 changed files with 1 additions and 1 deletions

View File

@ -814,7 +814,7 @@ loadConfig(const CString& pathname)
// load configuration
LOG((CLOG_DEBUG "opening configuration \"%s\"", pathname.c_str()));
std::ifstream configStream(pathname.c_str());
if (!configStream) {
if (!configStream.is_open()) {
throw XConfigRead("cannot open file");
}
configStream >> *ARG->m_config;