diff --git a/src/internfile/mh_mbox.cpp b/src/internfile/mh_mbox.cpp index 495284fc..c77d42c8 100644 --- a/src/internfile/mh_mbox.cpp +++ b/src/internfile/mh_mbox.cpp @@ -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; diff --git a/src/python/recoll/pyrecoll.cpp b/src/python/recoll/pyrecoll.cpp index 9bde5fdf..7b46fcd6 100644 --- a/src/python/recoll/pyrecoll.cpp +++ b/src/python/recoll/pyrecoll.cpp @@ -1497,7 +1497,7 @@ Query_getgroups(recoll_QueryObject* self, PyObject *, PyObject *) // make a python list of each, then group those in a pair, and // append this to the main list. for (unsigned int i = 0; i < hld.index_term_groups.size(); i++) { - HighlightData::TermGroup& tg{hld.index_term_groups[i]}; + HighlightData::TermGroup& tg(hld.index_term_groups[i]); unsigned int ugidx = tg.grpsugidx; ulist = PyList_New(hld.ugroups[ugidx].size()); for (unsigned int j = 0; j < hld.ugroups[ugidx].size(); j++) {