From e4ac1036fe9ef90e4b9b83ed2a5fabb9086bb2a2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pawe=C5=82=20K=C4=99dzia?= <Pawel.Kedzia@pwr.wroc.pl>
Date: Tue, 15 Nov 2011 12:00:26 +0100
Subject: [PATCH] AnnotatedSentence as Sentence also have the identifier
 (inherited from Sentence class)

---
 libcorpus2/ann/annotatedsentence.cpp | 4 ++--
 libcorpus2/ann/annotatedsentence.h   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libcorpus2/ann/annotatedsentence.cpp b/libcorpus2/ann/annotatedsentence.cpp
index 7203d85..097fe4e 100644
--- a/libcorpus2/ann/annotatedsentence.cpp
+++ b/libcorpus2/ann/annotatedsentence.cpp
@@ -6,8 +6,8 @@
 
 namespace Corpus2 {
 
-AnnotatedSentence::AnnotatedSentence()
-	: Sentence(), channels_()
+AnnotatedSentence::AnnotatedSentence(const std::string &id)
+	: Sentence(id), channels_()
 {
 }
 
diff --git a/libcorpus2/ann/annotatedsentence.h b/libcorpus2/ann/annotatedsentence.h
index c69203b..b1207f4 100644
--- a/libcorpus2/ann/annotatedsentence.h
+++ b/libcorpus2/ann/annotatedsentence.h
@@ -37,7 +37,7 @@ public:
 	/**
 	 * Create an empty AnnotatedSentece with no tokens and no channels
 	 */
-	AnnotatedSentence();
+	AnnotatedSentence(const std::string &id = "");
 
 	~AnnotatedSentence();
 
-- 
GitLab