diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-05-08 16:58:11 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-05-08 16:58:11 +0400 |
commit | a9fb183901f7d64bf5435a28bdb454b1f800cf6a (patch) | |
tree | e07cd7ff1e3e6e543c2986d2f1e45e4bfe7319cf /source/blender/blenlib | |
parent | df664fa6d54ff2bd0d8f218466985986ce522718 (diff) |
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
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/BLI_ghash.h | 4 | ||||
-rw-r--r-- | source/blender/blenlib/intern/BLI_ghash.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenlib/BLI_ghash.h b/source/blender/blenlib/BLI_ghash.h index d54d4d5272b..4555fa85601 100644 --- a/source/blender/blenlib/BLI_ghash.h +++ b/source/blender/blenlib/BLI_ghash.h @@ -132,11 +132,11 @@ void BLI_ghashIterator_step(GHashIterator *ghi); * \param ghi The iterator. * \return True if done, False otherwise. */ -bool BLI_ghashIterator_notDone(GHashIterator *ghi); +bool BLI_ghashIterator_done(GHashIterator *ghi); #define GHASH_ITER(gh_iter_, ghash_) \ for (BLI_ghashIterator_init(&gh_iter_, ghash_); \ - BLI_ghashIterator_notDone(&gh_iter_); \ + BLI_ghashIterator_done(&gh_iter_) == false; \ BLI_ghashIterator_step(&gh_iter_)) /* *** */ diff --git a/source/blender/blenlib/intern/BLI_ghash.c b/source/blender/blenlib/intern/BLI_ghash.c index f46643c5d89..df3bfc7ef1b 100644 --- a/source/blender/blenlib/intern/BLI_ghash.c +++ b/source/blender/blenlib/intern/BLI_ghash.c @@ -299,9 +299,9 @@ void BLI_ghashIterator_step(GHashIterator *ghi) } } } -bool BLI_ghashIterator_notDone(GHashIterator *ghi) +bool BLI_ghashIterator_done(GHashIterator *ghi) { - return ghi->curEntry != NULL; + return ghi->curEntry == NULL; } /***/ |