office-gobmx/xmloff/inc/functional.hxx
Rüdiger Timm cf47000fe4 INTEGRATION: CWS changefileheader (1.2.1086); FILE MERGED
2008/04/01 16:09:11 thb 1.2.1086.1: #i85898# Stripping all external header guards
2008-04-10 19:47:56 +00:00

27 lines
586 B
C++

#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