[pywin32-checkins] pywin32/com/win32com/src/extensions PyIPropertyStorage.cpp,1.5,1.6
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: <mha...@us...> - 2003-10-31 02:44:14
|
Update of /cvsroot/pywin32/pywin32/com/win32com/src/extensions In directory sc8-pr-cvs1:/tmp/cvs-serv15726/extensions Modified Files: PyIPropertyStorage.cpp Log Message: Remove inline declarations of loop indexes from the loop. Index: PyIPropertyStorage.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/src/extensions/PyIPropertyStorage.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** PyIPropertyStorage.cpp 30 Oct 2003 06:32:26 -0000 1.5 --- PyIPropertyStorage.cpp 31 Oct 2003 02:44:08 -0000 1.6 *************** *** 20,24 **** LONG cChars = 0; int len = PySequence_Length(ob); ! for (int i=0;i<len;i++) { PyObject *sub = PySequence_GetItem(ob, i); if (PyUnicode_Check(sub)) --- 20,25 ---- LONG cChars = 0; int len = PySequence_Length(ob); ! int i; ! for (i=0;i<len;i++) { PyObject *sub = PySequence_GetItem(ob, i); if (PyUnicode_Check(sub)) *************** *** 183,187 **** PROPVARIANT *pRet = new PROPVARIANT[len]; ! for (int i=0;i<len;i++) PropVariantInit(pRet+i); --- 184,189 ---- PROPVARIANT *pRet = new PROPVARIANT[len]; ! int i; ! for (i=0;i<len;i++) PropVariantInit(pRet+i); *************** *** 279,283 **** return NULL; } ! for (ULONG i=0;i<cProps;i++) PropVariantInit(pPropVars+i); --- 281,286 ---- return NULL; } ! ULONG i; ! for (i=0;i<cProps;i++) PropVariantInit(pPropVars+i); |