Cleanup: Use simpler lambda capture
It's typically only worth specifying specific captures when the lambda is stored as a function object for use later. Since this is just passed as a FunctionRef as an iteration callback, we can use a less complex capture here. That also helps clarify that this isn't a callback.
This commit is contained in:
parent
ed20c9e302
commit
6b671c4b54
|
@ -688,7 +688,7 @@ static void add_catalog_tabs(AssetShelfSettings &shelf_settings, uiLayout &layou
|
|||
|
||||
/* Regular catalog tabs. */
|
||||
settings_foreach_enabled_catalog_path(
|
||||
shelf_settings, [&shelf_settings, block](const asset_system::AssetCatalogPath &path) {
|
||||
shelf_settings, [&](const asset_system::AssetCatalogPath &path) {
|
||||
uiBut *but = add_tab_button(*block, path.name());
|
||||
|
||||
UI_but_func_set(but, [&shelf_settings, path](bContext &C) {
|
||||
|
|
Loading…
Reference in New Issue