Kaydet (Commit) 90976113 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

We already have SAL_CALL that means __cdecl on Windows

Not that there should be any need to use it here; it is the default anyway.

Also the extern "C" is bogus here as far as I know; that affects only the
external name of the function, and that a function is passed to bsearch()
doesn't set any requirements on the external name of it. It could be a static
function with no global symbol name. But oh well.

Change-Id: Ia264bf2f952fd6f38aa36a25a084383d4d3f1bdc
üst 7329fbd9
......@@ -33,13 +33,6 @@ using namespace com::sun::star::lang;
using namespace com::sun::star::beans;
using namespace cppu;
#ifdef WNT
#define CDECL _cdecl
#endif
#if defined(UNX)
#define CDECL
#endif
struct SbCompare_UString_PropertyValue_Impl
{
bool operator() (const OUString& lhs, PropertyValue const & rhs)
......@@ -58,7 +51,7 @@ struct SbCompare_UString_PropertyValue_Impl
#endif
};
extern "C" int CDECL SbCompare_UString_Property_Impl( const void *arg1, const void *arg2 )
extern "C" int SAL_CALL SbCompare_UString_Property_Impl( const void *arg1, const void *arg2 )
{
const OUString *pArg1 = (OUString*) arg1;
const Property *pArg2 = (Property*) arg2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment