Robert Shearman : oleaut: Add const attribute to iterators in get functions.

Alexandre Julliard julliard at wine.codeweavers.com
Sat Jan 14 10:56:41 CST 2006


Module: wine
Branch: refs/heads/master
Commit: 1616f81d00cae414ab559b812c49c8e89a92fe77
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=1616f81d00cae414ab559b812c49c8e89a92fe77

Author: Robert Shearman <rob at codeweavers.com>
Date:   Sat Jan 14 17:48:12 2006 +0100

oleaut: Add const attribute to iterators in get functions.

---

 dlls/oleaut32/typelib.c |   26 +++++++++++++-------------
 1 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/dlls/oleaut32/typelib.c b/dlls/oleaut32/typelib.c
index 3fa66c2..983eda3 100644
--- a/dlls/oleaut32/typelib.c
+++ b/dlls/oleaut32/typelib.c
@@ -4628,8 +4628,8 @@ static HRESULT WINAPI ITypeInfo_fnGetNam
         BSTR  *rgBstrNames, UINT cMaxNames, UINT  *pcNames)
 {
     ITypeInfoImpl *This = (ITypeInfoImpl *)iface;
-    TLBFuncDesc * pFDesc;
-    TLBVarDesc * pVDesc;
+    const TLBFuncDesc *pFDesc;
+    const TLBVarDesc *pVDesc;
     int i;
     TRACE("(%p) memid=0x%08lx Maxname=%d\n", This, memid, cMaxNames);
     for(pFDesc=This->funclist; pFDesc && pFDesc->funcdesc.memid != memid; pFDesc=pFDesc->next);
@@ -4698,7 +4698,7 @@ static HRESULT WINAPI ITypeInfo_fnGetRef
     ITypeInfoImpl *This = (ITypeInfoImpl *)iface;
     int i;
     HRESULT hr = S_OK;
-    TLBImplType *pImpl = This->impltypelist;
+    const TLBImplType *pImpl = This->impltypelist;
 
     TRACE("(%p) index %d\n", This, index);
     if (TRACE_ON(ole)) dump_TypeInfo(This);
@@ -4777,8 +4777,8 @@ static HRESULT WINAPI ITypeInfo_fnGetIDs
         LPOLESTR  *rgszNames, UINT cNames, MEMBERID  *pMemId)
 {
     ITypeInfoImpl *This = (ITypeInfoImpl *)iface;
-    TLBFuncDesc * pFDesc;
-    TLBVarDesc * pVDesc;
+    const TLBFuncDesc *pFDesc;
+    const TLBVarDesc *pVDesc;
     HRESULT ret=S_OK;
     int i;
 
@@ -5446,8 +5446,8 @@ static HRESULT WINAPI ITypeInfo_fnGetDoc
         DWORD  *pdwHelpContext, BSTR  *pBstrHelpFile)
 {
     ITypeInfoImpl *This = (ITypeInfoImpl *)iface;
-    TLBFuncDesc * pFDesc;
-    TLBVarDesc * pVDesc;
+    const TLBFuncDesc *pFDesc;
+    const TLBVarDesc *pVDesc;
     TRACE("(%p) memid %ld Name(%p) DocString(%p)"
           " HelpContext(%p) HelpFile(%p)\n",
         This, memid, pBstrName, pBstrDocString, pdwHelpContext, pBstrHelpFile);
@@ -5497,7 +5497,7 @@ static HRESULT WINAPI ITypeInfo_fnGetDll
         WORD  *pwOrdinal)
 {
     ITypeInfoImpl *This = (ITypeInfoImpl *)iface;
-    TLBFuncDesc *pFDesc;
+    const TLBFuncDesc *pFDesc;
 
     TRACE("(%p)->(memid %lx, %d, %p, %p, %p)\n", This, memid, invKind, pBstrDllName, pBstrName, pwOrdinal);
 
@@ -5831,7 +5831,7 @@ static HRESULT WINAPI ITypeInfo2_fnGetFu
     MEMBERID memid, INVOKEKIND invKind, UINT *pFuncIndex)
 {
     ITypeInfoImpl *This = (ITypeInfoImpl *)iface;
-    TLBFuncDesc *pFuncInfo;
+    const TLBFuncDesc *pFuncInfo;
     int i;
     HRESULT result;
 
@@ -6055,8 +6055,8 @@ static HRESULT WINAPI ITypeInfo2_fnGetDo
 	BSTR *pbstrHelpStringDll)
 {
     ITypeInfoImpl *This = (ITypeInfoImpl *)iface;
-    TLBFuncDesc * pFDesc;
-    TLBVarDesc * pVDesc;
+    const TLBFuncDesc *pFDesc;
+    const TLBVarDesc *pVDesc;
     TRACE("(%p) memid %ld lcid(0x%lx)  HelpString(%p) "
           "HelpStringContext(%p) HelpStringDll(%p)\n",
           This, memid, lcid, pbstrHelpString, pdwHelpStringContext,
@@ -6429,8 +6429,8 @@ static HRESULT WINAPI ITypeComp_fnBind(
     BINDPTR * pBindPtr)
 {
     ITypeInfoImpl *This = info_impl_from_ITypeComp(iface);
-    TLBFuncDesc * pFDesc;
-    TLBVarDesc * pVDesc;
+    const TLBFuncDesc *pFDesc;
+    const TLBVarDesc *pVDesc;
 
     TRACE("(%s, %lx, 0x%x, %p, %p, %p)\n", debugstr_w(szName), lHash, wFlags, ppTInfo, pDescKind, pBindPtr);
 




More information about the wine-cvs mailing list