Andrew Talbot : ole32: Constify some variables.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jul 2 09:52:13 CDT 2007


Module: wine
Branch: master
Commit: 886c970d76885033973689339af50c04246c6fd8
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=886c970d76885033973689339af50c04246c6fd8

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Sun Jul  1 17:15:22 2007 +0100

ole32: Constify some variables.

---

 dlls/ole32/enumx.c |    2 +-
 dlls/ole32/enumx.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/ole32/enumx.c b/dlls/ole32/enumx.c
index 232abec..9610dbe 100644
--- a/dlls/ole32/enumx.c
+++ b/dlls/ole32/enumx.c
@@ -189,7 +189,7 @@ enumx_impl *enumx_allocate(REFIID riid, const void *vtbl, ULONG elem_size)
  *
  * 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 --git a/dlls/ole32/enumx.h b/dlls/ole32/enumx.h
index 2d36b73..5d45c94 100644
--- a/dlls/ole32/enumx.h
+++ b/dlls/ole32/enumx.h
@@ -29,6 +29,6 @@ extern HRESULT WINAPI enumx_Skip(enumx_impl *, ULONG);
 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-cvs mailing list