diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2019-12-22 15:43:21 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2019-12-22 15:43:21 (GMT) |
commit | 0ea72fdd522e6bc3bc442e7d2ae40e7607546e55 (patch) | |
tree | f6db48d3500b0c68464be9fe92ca1eb8a193427b /src/htmlhelp.cpp | |
parent | 369c65635de29af6fd92c835879d70fdac7d2270 (diff) | |
parent | 146bec22e9ff91e8274becd719149f7ab9c7cfb9 (diff) | |
download | Doxygen-0ea72fdd522e6bc3bc442e7d2ae40e7607546e55.zip Doxygen-0ea72fdd522e6bc3bc442e7d2ae40e7607546e55.tar.gz Doxygen-0ea72fdd522e6bc3bc442e7d2ae40e7607546e55.tar.bz2 |
Merge branch 'feature/bug_terminate' of https://github.com/albert-github/doxygen into albert-github-feature/bug_terminate
Diffstat (limited to 'src/htmlhelp.cpp')
-rw-r--r-- | src/htmlhelp.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/htmlhelp.cpp b/src/htmlhelp.cpp index c514102..6101984 100644 --- a/src/htmlhelp.cpp +++ b/src/htmlhelp.cpp @@ -308,8 +308,7 @@ void HtmlHelp::initialize() m_fromUtf8 = portable_iconv_open(str,"UTF-8"); if (m_fromUtf8==(void *)(-1)) { - err("unsupported character conversion for CHM_INDEX_ENCODING: '%s'->'UTF-8'\n", str); - exit(1); + term(1,"unsupported character conversion for CHM_INDEX_ENCODING: '%s'->'UTF-8'\n", str); } /* open the contents file */ @@ -317,8 +316,7 @@ void HtmlHelp::initialize() cf = new QFile(fName); if (!cf->open(IO_WriteOnly)) { - err("Could not open file %s for writing\n",fName.data()); - exit(1); + term(1,"Could not open file %s for writing\n",fName.data()); } /* Write the header of the contents file */ cts.setDevice(cf); @@ -334,8 +332,7 @@ void HtmlHelp::initialize() kf = new QFile(fName); if (!kf->open(IO_WriteOnly)) { - err("Could not open file %s for writing\n",fName.data()); - exit(1); + term(1,"Could not open file %s for writing\n",fName.data()); } /* Write the header of the contents file */ kts.setDevice(kf); |