[pywin32-checkins] pywin32/com/win32com/src/extensions PyIPropertyStorage.cpp,1.8,1.9
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: <mha...@us...> - 2003-11-08 00:33:41
|
Update of /cvsroot/pywin32/pywin32/com/win32com/src/extensions In directory sc8-pr-cvs1:/tmp/cvs-serv24680/extensions Modified Files: PyIPropertyStorage.cpp Log Message: Move declaration of loop index out of loop body Index: PyIPropertyStorage.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/src/extensions/PyIPropertyStorage.cpp,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** PyIPropertyStorage.cpp 2 Nov 2003 09:57:44 -0000 1.8 --- PyIPropertyStorage.cpp 8 Nov 2003 00:33:38 -0000 1.9 *************** *** 448,453 **** ppStrs = new LPWSTR[cProps]; memset(ppStrs, 0, sizeof(LPWSTR)*cProps); ! ! for (ULONG i=0;i<cProps;i++) { PyObject *sub = PySequence_GetItem(obNames, i); BOOL ok = PyWinObject_AsBstr(sub, ppStrs+i); --- 448,453 ---- ppStrs = new LPWSTR[cProps]; memset(ppStrs, 0, sizeof(LPWSTR)*cProps); ! ULONG i; ! for (i=0;i<cProps;i++) { PyObject *sub = PySequence_GetItem(obNames, i); BOOL ok = PyWinObject_AsBstr(sub, ppStrs+i); |