office-gobmx/xmloff/inc/functional.hxx
Daniel Vogelheim 8cd1280ce8 #86004# obsoleted functional.hxx and less_functor
incompatible changes in  #if SUPD > 632
2001-05-17 13:27:40 +00:00

29 lines
619 B
C++

#ifndef _XMLOFF_FUNCTIONAL_HXX
#define _XMLOFF_FUNCTIONAL_HXX
#ifndef _RTL_USTRING_HXX_
#include <rtl/ustring.hxx>
#endif
/* 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