diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-10-28 17:41:05 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-10-28 17:41:05 +0300 |
commit | cb7afe5e419c1219ec3e96c580225d4603089167 (patch) | |
tree | a2932f31543283785f02efc68ca3286c1982746c /source/blender/windowmanager/intern/wm_operators.c | |
parent | bfa24aa945ae10bbe1f954704929fbf05db800ef (diff) |
WM: unneeded alloc the operator-type iterator
Diffstat (limited to 'source/blender/windowmanager/intern/wm_operators.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_operators.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c index 68aad2dbda6..77f6028dd06 100644 --- a/source/blender/windowmanager/intern/wm_operators.c +++ b/source/blender/windowmanager/intern/wm_operators.c @@ -147,9 +147,9 @@ wmOperatorType *WM_operatortype_find(const char *idname, bool quiet) } /* caller must free */ -GHashIterator *WM_operatortype_iter(void) +void WM_operatortype_iter(GHashIterator *ghi) { - return BLI_ghashIterator_new(global_ops_hash); + BLI_ghashIterator_init(ghi, global_ops_hash); } /* all ops in 1 list (for time being... needs evaluation later) */ |