ole32: Constify some variables (1 of 2)

Andrew Talbot Andrew.Talbot at talbotville.com
Sun Jul 1 11:15:22 CDT 2007


Changelog:
    ole32: Constify some variables.

diff -urN a/dlls/ole32/enumx.c b/dlls/ole32/enumx.c
--- a/dlls/ole32/enumx.c	2006-10-16 11:31:02.000000000 +0100
+++ b/dlls/ole32/enumx.c	2007-07-01 13:13:22.000000000 +0100
@@ -189,7 +189,7 @@
  *
  * Add an element to the enumeration.
  */
-void *enumx_add_element(enumx_impl *enumx, void *data)
+void *enumx_add_element(enumx_impl *enumx, const void *data)
 {
     struct list *element;
 
diff -urN a/dlls/ole32/enumx.h b/dlls/ole32/enumx.h
--- a/dlls/ole32/enumx.h	2006-07-12 12:46:50.000000000 +0100
+++ b/dlls/ole32/enumx.h	2007-07-01 13:13:33.000000000 +0100
@@ -29,6 +29,6 @@
 extern HRESULT WINAPI enumx_Reset(enumx_impl *);
 extern HRESULT WINAPI enumx_Clone(enumx_impl *, enumx_impl **);
 extern enumx_impl *enumx_allocate(REFIID, const void *, ULONG);
-extern void *enumx_add_element(enumx_impl *, void *);
+extern void *enumx_add_element(enumx_impl *, const void *);
 
 #endif



More information about the wine-patches mailing list