diff --git a/libcorpus2/io/xcesreader.cpp b/libcorpus2/io/xcesreader.cpp index a0861e2a1bc234f08220e065213425b71167b59e..87fbd05c22e853d48cc32ae99439e010465dd6cc 100644 --- a/libcorpus2/io/xcesreader.cpp +++ b/libcorpus2/io/xcesreader.cpp @@ -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();