diff options
Diffstat (limited to 'o3tl')
-rw-r--r-- | o3tl/qa/test-sorted_vector.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/o3tl/qa/test-sorted_vector.cxx b/o3tl/qa/test-sorted_vector.cxx index c7fdb0c0455d..8e04e1d2232d 100644 --- a/o3tl/qa/test-sorted_vector.cxx +++ b/o3tl/qa/test-sorted_vector.cxx @@ -40,7 +40,7 @@ class sorted_vector_test : public CppUnit::TestFixture public: void testBasics() { - o3tl::sorted_vector<SwContent*, o3tl::less_ptr_to<SwContent> > aVec; + o3tl::sorted_vector<SwContent*, o3tl::less_ptr_to> aVec; // create 4 test elements std::unique_ptr<SwContent> p1( new SwContent(1) ); @@ -85,7 +85,7 @@ public: void testErase() { - o3tl::sorted_vector<SwContent*, o3tl::less_ptr_to<SwContent> > aVec; + o3tl::sorted_vector<SwContent*, o3tl::less_ptr_to> aVec; SwContent *p1 = new SwContent(1); SwContent *p2 = new SwContent(2); SwContent *p3 = new SwContent(3); @@ -115,7 +115,7 @@ public: void testInsertRange() { - o3tl::sorted_vector<SwContent*, o3tl::less_ptr_to<SwContent> > aVec1; + o3tl::sorted_vector<SwContent*, o3tl::less_ptr_to> aVec1; std::unique_ptr<SwContent> p1( new SwContent(1) ); std::unique_ptr<SwContent> p2( new SwContent(2) ); std::unique_ptr<SwContent> p3( new SwContent(3) ); @@ -124,7 +124,7 @@ public: aVec1.insert(p2.get()); aVec1.insert(p3.get()); - o3tl::sorted_vector<SwContent*, o3tl::less_ptr_to<SwContent> > aVec2; + o3tl::sorted_vector<SwContent*, o3tl::less_ptr_to> aVec2; aVec2.insert( aVec1 ); CPPUNIT_ASSERT_EQUAL( static_cast<size_t>(3), aVec2.size() ); @@ -132,7 +132,7 @@ public: void testLowerBound() { - o3tl::sorted_vector<SwContent*, o3tl::less_ptr_to<SwContent> > aVec; + o3tl::sorted_vector<SwContent*, o3tl::less_ptr_to> aVec; std::unique_ptr<SwContent> p1( new SwContent(1) ); std::unique_ptr<SwContent> p2( new SwContent(2) ); std::unique_ptr<SwContent> p3( new SwContent(3) ); @@ -148,7 +148,7 @@ public: void testBasics_FindPtr() { - o3tl::sorted_vector<SwContent*, o3tl::less_ptr_to<SwContent>, + o3tl::sorted_vector<SwContent*, o3tl::less_ptr_to, o3tl::find_partialorder_ptrequals> aVec; std::unique_ptr<SwContent> p1( new SwContent(1) ); std::unique_ptr<SwContent> p2( new SwContent(2) ); @@ -206,7 +206,7 @@ public: void testErase_FindPtr() { - o3tl::sorted_vector<SwContent*, o3tl::less_ptr_to<SwContent>, + o3tl::sorted_vector<SwContent*, o3tl::less_ptr_to, o3tl::find_partialorder_ptrequals> aVec; std::unique_ptr<SwContent> p1( new SwContent(1) ); SwContent *p1_2 = new SwContent(1); @@ -256,7 +256,7 @@ public: void testUniquePtr1() { - o3tl::sorted_vector<std::unique_ptr<OUString>, o3tl::less_uniqueptr_to<OUString>> aVec; + o3tl::sorted_vector<std::unique_ptr<OUString>, o3tl::less_ptr_to> aVec; auto str_c = aVec.insert(std::make_unique<OUString>("c")).first->get(); auto str_b1 = aVec.insert(std::make_unique<OUString>("b")).first->get(); @@ -278,7 +278,7 @@ public: void testUniquePtr2() { - o3tl::sorted_vector<std::unique_ptr<OUString>, o3tl::less_uniqueptr_to<OUString>, + o3tl::sorted_vector<std::unique_ptr<OUString>, o3tl::less_ptr_to, o3tl::find_partialorder_ptrequals> aVec; auto str_c = aVec.insert(std::make_unique<OUString>("c")).first->get(); |