rename BLI_ghashIterator_notDone() -> BLI_ghashIterator_done()

was renamed fairly recently but other similar iterators not negated
	like this, would prefer to keep it as it was
This commit is contained in:
Campbell Barton
2013-05-08 12:58:11 +00:00
parent df664fa6d5
commit a9fb183901
25 changed files with 43 additions and 43 deletions

View File

@@ -369,7 +369,7 @@ static PyObject *pyop_dir(PyObject *UNUSED(self))
GHashIterator *iter = WM_operatortype_iter();
PyObject *list = PyList_New(0), *name;
for ( ; BLI_ghashIterator_notDone(iter); BLI_ghashIterator_step(iter)) {
for ( ; !BLI_ghashIterator_done(iter); BLI_ghashIterator_step(iter)) {
wmOperatorType *ot = BLI_ghashIterator_getValue(iter);
name = PyUnicode_FromString(ot->idname);

View File

@@ -250,7 +250,7 @@ static void id_release_weakref_list(struct ID *id, GHash *weakinfo_hash)
fprintf(stdout, "id_release_weakref: '%s', %d items\n", id->name, BLI_ghash_size(weakinfo_hash));
#endif
while (BLI_ghashIterator_notDone(&weakinfo_hash_iter)) {
while (!BLI_ghashIterator_done(&weakinfo_hash_iter)) {
PyObject *weakref = (PyObject *)BLI_ghashIterator_getKey(&weakinfo_hash_iter);
PyObject *item = PyWeakref_GET_OBJECT(weakref);
if (item != Py_None) {