change dubious idioms tricking older gcc for more robust variants

This commit is contained in:
Jean-Francois Dockes
2021-08-12 18:52:34 +02:00
parent 03e277c0c9
commit f91185fd53
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -346,7 +346,7 @@ bool MimeHandlerMbox::set_document_file_impl(const string&, const string &fn)
LOGDEB("MimeHandlerMbox::set_document_file(" << fn << ")\n");
clear_impl();
m->fn = fn;
m->instream = ifstream(fn.c_str(), std::ifstream::binary);
m->instream.open(fn.c_str(), std::ifstream::binary);
if (!m->instream.good()) {
LOGSYSERR("MimeHandlerMail::set_document_file", "ifstream", fn);
return false;