Cleanup: Avoid unnecessary .c_str() call
This commit is contained in:
@@ -6167,7 +6167,7 @@ static bool ui_layout_has_panel_label(const uiLayout *layout, const PanelType *p
|
||||
if (subitem->type == ITEM_BUTTON) {
|
||||
uiButtonItem *bitem = (uiButtonItem *)subitem;
|
||||
if (!(bitem->but->flag & UI_HIDDEN) &&
|
||||
STREQ(bitem->but->str.c_str(), CTX_IFACE_(pt->translation_context, pt->label)))
|
||||
bitem->but->str == CTX_IFACE_(pt->translation_context, pt->label))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user