From 9097611359d37003c9ac5b253dd592fed17e0aae Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Sat, 12 Oct 2013 09:45:17 +0300 Subject: 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 --- basic/source/classes/propacc.cxx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'basic') diff --git a/basic/source/classes/propacc.cxx b/basic/source/classes/propacc.cxx index 81fd9462af7a..2ea51d4275db 100644 --- a/basic/source/classes/propacc.cxx +++ b/basic/source/classes/propacc.cxx @@ -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; -- cgit