diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-03-15 10:15:28 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2022-03-15 10:15:28 +0000 |
commit | 39f64445921f49fb1e0cc5a4144a8ce0ee65fcd5 (patch) | |
tree | b25a52f172c13c17933ce8ff6b1411ab5c695d16 /document/src/tests | |
parent | 38a32e3e4af6d2b6a7ea68a4bb490352e9d64be0 (diff) |
GC unused convenience methods.
Diffstat (limited to 'document/src/tests')
-rw-r--r-- | document/src/tests/annotation/annotation_test.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/document/src/tests/annotation/annotation_test.cpp b/document/src/tests/annotation/annotation_test.cpp index 1e4e216cdc6..2700cfcf96f 100644 --- a/document/src/tests/annotation/annotation_test.cpp +++ b/document/src/tests/annotation/annotation_test.cpp @@ -154,7 +154,7 @@ TEST("requireThatAnnotationsCanHaveValues") { } TEST("requireThatAnnotationsCanReferenceAnnotations") { - SpanList::UP root(new SpanList); + auto root = std::make_unique<SpanList>(); SpanTree tree("html", std::move(root)); size_t san_index = tree.annotate(makeUP(new Annotation(text_type))); size_t fran_index = tree.annotate(makeUP(new Annotation(text_type))); @@ -174,7 +174,6 @@ TEST("requireThatAnnotationsCanReferenceAnnotations") { Annotation city(city_type, std::move(city_data)); ASSERT_TRUE(city.getFieldValue()); - EXPECT_TRUE(city.getFieldValue()->isA(original)); EXPECT_EQUAL(original, *city.getFieldValue()); } |