Cleanup: Avoid unnecessary .c_str() call

This commit is contained in:
Hans Goudey
2024-01-20 21:47:16 -05:00
parent 9e5cdf52f6
commit f2f9bce6c3

View File

@@ -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;
}