- assert(pdata);
- const srd_proto_data_annotation *const pda =
- (const srd_proto_data_annotation*)pdata->data;
- assert(pda);
-
- _format = pda->ann_format;
- _row = 0;
-
- const char *const *annotations = (char**)pda->ann_text;
- while(*annotations) {
- _annotations.push_back(QString::fromUtf8(*annotations));
- annotations++;
+}
+
+Annotation::Annotation(Annotation&& a) :
+ start_sample_(a.start_sample_),
+ end_sample_(a.end_sample_),
+ texts_(a.texts_),
+ ann_class_id_(a.ann_class_id_),
+ data_(a.data_)
+{
+}
+
+Annotation& Annotation::operator=(Annotation&& a)
+{
+ if (&a != this) {
+ start_sample_ = a.start_sample_;
+ end_sample_ = a.end_sample_;
+ texts_ = a.texts_;
+ ann_class_id_ = a.ann_class_id_;
+ data_ = a.data_;