Skip to content
Snippets Groups Projects
Commit a20b1393 authored by ilor's avatar ilor
Browse files

do not throw by pointer in xcesreader

parent 37fa00cb
No related merge requests found
......@@ -82,7 +82,7 @@ XcesReader::XcesReader(const Tagset& tagset, const std::string& filename, bool d
this->is_owned_.reset(new std::ifstream(filename.c_str(), std::ifstream::in));
if (this->is_owned_->bad()) {
throw new Corpus2Error("File not found!");
throw Corpus2Error("File not found!");
}
else {
this->is_ = is_owned_.get();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment