merge the formfield patch from ooo-build
[ooovba.git] / xmloff / inc / functional.hxx
blob1842a7139aa3a7d94eb780a6936b7a4aee84cfaf
1 #ifndef _XMLOFF_FUNCTIONAL_HXX
2 #define _XMLOFF_FUNCTIONAL_HXX
4 #include <rtl/ustring.hxx>
6 /* THIS HEADER IS DEPRECATED. USE comphelper/stl_types.hxx INSTEAD!!! */
8 /** @#file
10 * re-implement STL functors as needed
12 * The standard comparison operators from the STL cause warnings with
13 * several compilers about our sal_Bool (=unsigned char) being
14 * converted to bool (C++ bool). We wish to avoid that.
17 struct less_functor
19 bool operator()(const ::rtl::OUString& x,
20 const ::rtl::OUString& y) const
22 return 0 != (x<y);
27 #endif