From a20b139398c447369a6449c98458aa29cd56e641 Mon Sep 17 00:00:00 2001
From: ilor <kailoran@gmail.com>
Date: Fri, 18 Feb 2011 14:41:48 +0100
Subject: [PATCH] do not throw by pointer in xcesreader

---
 libcorpus2/io/xcesreader.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libcorpus2/io/xcesreader.cpp b/libcorpus2/io/xcesreader.cpp
index a0861e2..87fbd05 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();
-- 
GitLab