diff options
Diffstat (limited to 'xmloff/inc/functional.hxx')
-rw-r--r-- | xmloff/inc/functional.hxx | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/xmloff/inc/functional.hxx b/xmloff/inc/functional.hxx new file mode 100644 index 000000000000..7bcbc5c3b210 --- /dev/null +++ b/xmloff/inc/functional.hxx @@ -0,0 +1,27 @@ +#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 |