2010-10-27 07:11:31 -05:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2000-09-28 12:27:14 -05:00
|
|
|
#ifndef _XMLOFF_FUNCTIONAL_HXX
|
|
|
|
#define _XMLOFF_FUNCTIONAL_HXX
|
|
|
|
|
2001-05-17 08:27:40 -05:00
|
|
|
#include <rtl/ustring.hxx>
|
|
|
|
|
|
|
|
/* THIS HEADER IS DEPRECATED. USE comphelper/stl_types.hxx INSTEAD!!! */
|
|
|
|
|
2000-09-28 12:27:14 -05:00
|
|
|
/** @#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
|
2010-10-27 07:11:31 -05:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|