summaryrefslogtreecommitdiffstats
path: root/include/comphelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-12-05 18:34:54 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-12-05 18:36:22 +0100
commit895e6e7bb7abddb135f6fe3cfef1505261d4cbc6 (patch)
tree07e906292f1e9ecc47b49603a920ddc28c41d91c /include/comphelper
parentGet rid of DECLARE_STL_STDKEY_SET (diff)
downloadcore-895e6e7bb7abddb135f6fe3cfef1505261d4cbc6.tar.gz
core-895e6e7bb7abddb135f6fe3cfef1505261d4cbc6.zip
Get rid of comphelper::UStringLess
...default std::less<OUString> is just fine. Change-Id: Ib9d3c10f2817d757f3c19eb3d4607095883af91a
Diffstat (limited to 'include/comphelper')
-rw-r--r--include/comphelper/stl_types.hxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/include/comphelper/stl_types.hxx b/include/comphelper/stl_types.hxx
index 9d129c2ab21c..228da5b443a6 100644
--- a/include/comphelper/stl_types.hxx
+++ b/include/comphelper/stl_types.hxx
@@ -44,12 +44,6 @@ namespace comphelper
//========================================================================
// comparison functors
-//------------------------------------------------------------------------
-struct UStringLess : public ::std::binary_function< OUString, OUString, bool>
-{
- bool operator() (const OUString& x, const OUString& y) const { return x < y ? true : false;} // construct prevents a MSVC6 warning
-};
-//------------------------------------------------------------------------
struct UStringMixLess : public ::std::binary_function< OUString, OUString, bool>
{
bool m_bCaseSensitive;
@@ -257,7 +251,8 @@ OutputIter intersperse(
DECLARE_STL_ITERATORS(classname) \
#define DECLARE_STL_USTRINGACCESS_MAP(valuetype, classname) \
- DECLARE_STL_MAP(OUString, valuetype, ::comphelper::UStringLess, classname) \
+ typedef std::map< OUString, valuetype > classname; \
+ DECLARE_STL_ITERATORS(classname)
#endif // INCLUDED_COMPHELPER_STL_TYPES_HXX