diff options
Diffstat (limited to 'src/configimpl.l')
-rw-r--r-- | src/configimpl.l | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/configimpl.l b/src/configimpl.l index 99f15a4..4443f9c 100644 --- a/src/configimpl.l +++ b/src/configimpl.l @@ -1313,7 +1313,6 @@ static QCString configFileToString(const char *name) return ret; }; - bool fileOpened=FALSE; if (name[0]=='-' && name[1]==0) // read from stdin { // read contents from stdin into contents string @@ -1324,16 +1323,11 @@ static QCString configFileToString(const char *name) std::ifstream f(name,std::istream::in); if (!f.is_open()) { - config_err("file '%s' not found\n",name); + config_term("file '%s' not found or could not be opened\n",name); return ""; } return stream2string(f); } - if (!fileOpened) - { - config_term("cannot open file '%s' for reading\n",name); - } - return ""; } bool ConfigImpl::parseString(const char *fn,const char *str,bool update) |