diff --git a/CMakeLists.txt b/CMakeLists.txt index dd9d2a79a15fa5c98d7a7ad1029c6365793c768d..71cec9f8a92cb5947355f17e6b2ae6f82fa866db 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,7 @@ PROJECT(Corpus2Library) set(corpus2_ver_major "1") set(corpus2_ver_minor "2") -set(corpus2_ver_patch "1") +set(corpus2_ver_patch "2") cmake_minimum_required(VERSION 2.8.0) diff --git a/libcorpus2/ann/annotatedsentence.cpp b/libcorpus2/ann/annotatedsentence.cpp index 50c5ae81df19db8bcc128dbc7173fd1b09c761fa..6d41d862e53e33a4bdffa3dfbbb3b895289efa3b 100644 --- a/libcorpus2/ann/annotatedsentence.cpp +++ b/libcorpus2/ann/annotatedsentence.cpp @@ -34,7 +34,7 @@ AnnotatedSentence::~AnnotatedSentence() Sentence::Ptr AnnotatedSentence::clone_shared() const { boost::shared_ptr<AnnotatedSentence> copy; - copy = boost::make_shared<AnnotatedSentence>(); + copy = boost::make_shared<AnnotatedSentence>(id_); BOOST_FOREACH(const Token* t, tokens_) { copy->append(t->clone()); } diff --git a/libcorpus2/sentence.cpp b/libcorpus2/sentence.cpp index bb76754d3ad3bfc78e283da5babbd4c3df586baa..073d9a42ba6f1be3508380bb0cd3ff6d9d6fd554 100644 --- a/libcorpus2/sentence.cpp +++ b/libcorpus2/sentence.cpp @@ -33,7 +33,7 @@ Sentence::~Sentence() Sentence::Ptr Sentence::clone_shared() const { - Sentence::Ptr s = boost::make_shared<Sentence>(); + Sentence::Ptr s = boost::make_shared<Sentence>(id_); BOOST_FOREACH(const Token* t, tokens_) { s->append(t->clone()); }