diff options
Diffstat (limited to 'source/blender/editors/interface/interface.c')
-rw-r--r-- | source/blender/editors/interface/interface.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c index 108f06a5cb6..e70b793cfb0 100644 --- a/source/blender/editors/interface/interface.c +++ b/source/blender/editors/interface/interface.c @@ -1919,14 +1919,7 @@ uiBlock *uiBeginBlock(const bContext *C, ARegion *region, const char *name, shor uiBlock *uiGetBlock(const char *name, ARegion *ar) { - uiBlock *block= ar->uiblocks.first; - - while(block) { - if( strcmp(name, block->name)==0 ) return block; - block= block->next; - } - - return NULL; + return BLI_findstring(&ar->uiblocks, name, offsetof(uiBlock, name)); } void uiBlockSetEmboss(uiBlock *block, char dt) |