summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2012-02-18 21:12:20 +0100
committerThomas Arnhold <thomas@arnhold.org>2012-02-18 21:33:05 +0100
commita8e35884d26c31cd449a9c615e612360b6c9ec50 (patch)
treeda4e4ddee1c05b6eb998b92a7462787c7410b07c /xmloff
parenta8a38888b5659d4ae655d2aa26b10d248baf6732 (diff)
xmloff: use ::comphelper::UStringLess instead of less_functor
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/Package_inc.mk1
-rw-r--r--xmloff/inc/functional.hxx30
-rw-r--r--xmloff/inc/xmloff/txtimp.hxx3
-rw-r--r--xmloff/source/transform/MetaTContext.hxx5
4 files changed, 2 insertions, 37 deletions
diff --git a/xmloff/Package_inc.mk b/xmloff/Package_inc.mk
index 892ecddd4937..b53ea7eacc6c 100644
--- a/xmloff/Package_inc.mk
+++ b/xmloff/Package_inc.mk
@@ -76,7 +76,6 @@ $(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/families.hxx,xmloff/fami
$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/formlayerexport.hxx,xmloff/formlayerexport.hxx))
$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/formlayerimport.hxx,xmloff/formlayerimport.hxx))
$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/formsimp.hxx,xmloff/formsimp.hxx))
-$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/functional.hxx,xmloff/functional.hxx))
$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/i18nmap.hxx,xmloff/i18nmap.hxx))
$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/maptype.hxx,xmloff/maptype.hxx))
$(eval $(call gb_Package_add_file,xmloff_inc,inc/xmloff/nmspmap.hxx,xmloff/nmspmap.hxx))
diff --git a/xmloff/inc/functional.hxx b/xmloff/inc/functional.hxx
deleted file mode 100644
index 6d27da04f742..000000000000
--- a/xmloff/inc/functional.hxx
+++ /dev/null
@@ -1,30 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-#ifndef _XMLOFF_FUNCTIONAL_HXX
-#define _XMLOFF_FUNCTIONAL_HXX
-
-#include <rtl/ustring.hxx>
-
-/* THIS HEADER IS DEPRECATED. USE comphelper/stl_types.hxx INSTEAD!!! */
-
-/** @#file
- *
- * re-implement STL functors as needed
- *
- * The standard comparison operators from the STL cause warnings with
- * several compilers about our sal_Bool (=unsigned char) being
- * converted to bool (C++ bool). We wish to avoid that.
- */
-
-struct less_functor
-{
- bool operator()(const ::rtl::OUString& x,
- const ::rtl::OUString& y) const
- {
- return 0 != (x<y);
- }
-};
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/xmloff/inc/xmloff/txtimp.hxx b/xmloff/inc/xmloff/txtimp.hxx
index 93a8ba27f267..f364402440ba 100644
--- a/xmloff/inc/xmloff/txtimp.hxx
+++ b/xmloff/inc/xmloff/txtimp.hxx
@@ -39,9 +39,6 @@
#include <boost/shared_ptr.hpp>
#include <xmloff/xmltkmap.hxx>
-
-// xmloff/functional.hxx is obsolete and should be replaced by its comphelper
-// counterpart
#include <comphelper/stl_types.hxx>
#include <xmloff/uniref.hxx>
diff --git a/xmloff/source/transform/MetaTContext.hxx b/xmloff/source/transform/MetaTContext.hxx
index 7ccca93c84b3..ad17f4959567 100644
--- a/xmloff/source/transform/MetaTContext.hxx
+++ b/xmloff/source/transform/MetaTContext.hxx
@@ -30,15 +30,14 @@
#define _XMLOFF_METATCONTEXT_HXX
#include <rtl/ref.hxx>
-#include "xmloff/functional.hxx"
-
+#include <comphelper/stl_types.hxx>
#include <map>
#include "FlatTContext.hxx"
typedef ::std::multimap< ::rtl::OUString,
::rtl::Reference< XMLPersTextContentTContext >,
- less_functor > XMLMetaContexts_Impl;
+ ::comphelper::UStringLess > XMLMetaContexts_Impl;
class XMLMetaTransformerContext : public XMLTransformerContext