Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index


Hi,

this patch removes the unused bufsizeof macro.

BTW, this patch and all other patches submitted by me to be used in
LibreOffice are released under LGPLv3+.

-- Kenneth

diff --git a/sal/osl/w32/module.cxx b/sal/osl/w32/module.cxx
index 57ec786..ad67487 100644
--- a/sal/osl/w32/module.cxx
+++ b/sal/osl/w32/module.cxx
@@ -393,8 +393,6 @@ typedef BOOL (WINAPI *GetModuleInformation_PROC)(
   DWORD cb                 // size of the structure
 );
 
-#define bufsizeof(buffer) (sizeof(buffer) / sizeof((buffer)[0]))
-
 /* This version can fail because PSAPI.DLL is not always part of NT 4 despite MSDN Libary 6.0a say 
so */
 
 static sal_Bool SAL_CALL _osl_addressGetModuleURL_NT( void *pv, rtl_uString **pustrURL )
diff --git a/sal/systools/win32/uwinapi/Uwinapi.h b/sal/systools/win32/uwinapi/Uwinapi.h
index eb2e6bf..2d0cadc 100644
--- a/sal/systools/win32/uwinapi/Uwinapi.h
+++ b/sal/systools/win32/uwinapi/Uwinapi.h
@@ -47,11 +47,6 @@ EXTERN_C WINBASEAPI LPWSTR WINAPI lstrrchrW( LPCWSTR lpString, WCHAR c );
 #define lstrchr                lstrchrA
 #endif
 
-// macro that calculates the count of elements of a static array
-
-#define bufsizeof(buf) (sizeof(buf) / sizeof((buf)[0]))
-
-
 #define IsValidHandle(Handle)  ((DWORD)(Handle) + 1 > 1)
 
 #ifdef __cplusplus

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.