summaryrefslogtreecommitdiff
path: root/sw/inc/ndhints.hxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-08-02 21:30:45 +0200
committerMichael Stahl <mstahl@redhat.com>2012-08-02 22:12:07 +0200
commitebd2bfa2e748d9efa4ee759f5b9003d9e470d752 (patch)
treef892cf1cec026b077fbe991dc2ce27e6c315458d /sw/inc/ndhints.hxx
parent285a5ae06cf51927c2df4b47043e51394aab98b7 (diff)
Revert "Revert "sorted_vector: turn Find parameter into template""
This reverts commit 8291d41667b1a63d35bf818aaf9d75529e1f12f0. Un-revert that, with a tweak: with the bizarre name lookup semantics in C++, the proper way to refer to a template (as opposed to a template instance) is by prefixing the name with its namespace, which does seem to work with MSVC2008 & GCC 4.7; thanks to Stephan Bergmann for the hint. Change-Id: Id9cccbe68fb3ce2dd070c4b3dbd21782c92170ca
Diffstat (limited to 'sw/inc/ndhints.hxx')
-rw-r--r--sw/inc/ndhints.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/ndhints.hxx b/sw/inc/ndhints.hxx
index 154c95763740..773bb1f4bfaa 100644
--- a/sw/inc/ndhints.hxx
+++ b/sw/inc/ndhints.hxx
@@ -76,14 +76,14 @@ struct CompareSwpHtStart
bool operator()(SwTxtAttr* const lhs, SwTxtAttr* const rhs) const;
};
class SwpHtStart : public o3tl::sorted_vector<SwTxtAttr*, CompareSwpHtStart,
- o3tl::find_partialorder_ptrequals<SwTxtAttr*, CompareSwpHtStart> > {};
+ o3tl::find_partialorder_ptrequals> {};
struct CompareSwpHtEnd
{
bool operator()(SwTxtAttr* const lhs, SwTxtAttr* const rhs) const;
};
class SwpHtEnd : public o3tl::sorted_vector<SwTxtAttr*, CompareSwpHtEnd,
- o3tl::find_partialorder_ptrequals<SwTxtAttr*, CompareSwpHtEnd> > {};
+ o3tl::find_partialorder_ptrequals> {};
// Class SwpHintsArr