summaryrefslogtreecommitdiff
path: root/o3tl/qa
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-08-01 12:52:09 +0200
committerMichael Stahl <mstahl@redhat.com>2012-08-01 12:54:06 +0200
commit3e3acee762fac71f7356ed1305a64e0278278081 (patch)
treed7478f0c065a577b85b6a2be64cb749b49501754 /o3tl/qa
parent77165efb4eb4d9735f8dd4f8c99044a36d60a611 (diff)
sorted_vector: turn Find parameter into template
Enforces same type parameters for sorted_vector and Find, and makes it easier to use. Change-Id: Ide456a48f015cb0a9dea7a0bf2bcf2ccad527fd1
Diffstat (limited to 'o3tl/qa')
-rw-r--r--o3tl/qa/test-sorted_vector.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/o3tl/qa/test-sorted_vector.cxx b/o3tl/qa/test-sorted_vector.cxx
index 1b321c91a2a4..8e9e719f2c1d 100644
--- a/o3tl/qa/test-sorted_vector.cxx
+++ b/o3tl/qa/test-sorted_vector.cxx
@@ -136,8 +136,7 @@ public:
void testBasics_FindPtr()
{
o3tl::sorted_vector<SwContent*, o3tl::less_ptr_to<SwContent>,
- o3tl::find_partialorder_ptrequals<SwContent*,
- o3tl::less_ptr_to<SwContent> > > aVec;
+ o3tl::find_partialorder_ptrequals> aVec;
SwContent *p1 = new SwContent(1);
SwContent *p2 = new SwContent(2);
SwContent *p2_2 = new SwContent(2);
@@ -195,8 +194,7 @@ public:
void testErase_FindPtr()
{
o3tl::sorted_vector<SwContent*, o3tl::less_ptr_to<SwContent>,
- o3tl::find_partialorder_ptrequals<SwContent*,
- o3tl::less_ptr_to<SwContent> > > aVec;
+ o3tl::find_partialorder_ptrequals> aVec;
SwContent *p1 = new SwContent(1);
SwContent *p1_2 = new SwContent(1);
SwContent *p1_3 = new SwContent(1);