diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-06-29 03:37:00 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-06-29 03:37:00 +0300 |
commit | 60a2038fbaaf78b3019e6375e28904f2a124e78d (patch) | |
tree | ef6502dfa2c1f685671d65c26b26084f1facd7ee /source/blender/editors/space_spreadsheet | |
parent | 515d9f9a355b98c6c4af7d8d0b5ada169e4bdd0f (diff) |
Cleanup: clang-tidy
Diffstat (limited to 'source/blender/editors/space_spreadsheet')
3 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/space_spreadsheet/space_spreadsheet.cc b/source/blender/editors/space_spreadsheet/space_spreadsheet.cc index f8654500044..07517f9e60f 100644 --- a/source/blender/editors/space_spreadsheet/space_spreadsheet.cc +++ b/source/blender/editors/space_spreadsheet/space_spreadsheet.cc @@ -606,7 +606,7 @@ static void spreadsheet_dataset_region_draw(const bContext *C, ARegion *region) UI_view2d_view_restore(C); /* scrollers */ - UI_view2d_scrollers_draw(v2d, NULL); + UI_view2d_scrollers_draw(v2d, nullptr); } static void spreadsheet_sidebar_init(wmWindowManager *wm, ARegion *region) diff --git a/source/blender/editors/space_spreadsheet/spreadsheet_dataset_draw.cc b/source/blender/editors/space_spreadsheet/spreadsheet_dataset_draw.cc index 4f870092caa..2b31ce7d03c 100644 --- a/source/blender/editors/space_spreadsheet/spreadsheet_dataset_draw.cc +++ b/source/blender/editors/space_spreadsheet/spreadsheet_dataset_draw.cc @@ -119,7 +119,7 @@ void DatasetRegionDrawer::draw_hierarchy(const DatasetLayoutHierarchy &layout) /* Iterate attribute domains, skip unset ones (storage has to be in a enum-based, fixed size * array so uses optionals to support skipping enum values that shouldn't be displayed for a * component). */ - for (auto &optional_domain : component.attr_domains) { + for (const auto &optional_domain : component.attr_domains) { if (!optional_domain) { continue; } @@ -212,7 +212,7 @@ void DatasetRegionDrawer::draw_dataset_row(const int indentation, rect.ymin, BLI_rctf_size_x(&rect), BLI_rctf_size_y(&rect), - NULL); + nullptr); UI_but_datasetrow_indentation_set(bt, indentation); diff --git a/source/blender/editors/space_spreadsheet/spreadsheet_ops.cc b/source/blender/editors/space_spreadsheet/spreadsheet_ops.cc index ceb4cd84cde..11ed88b7dc9 100644 --- a/source/blender/editors/space_spreadsheet/spreadsheet_ops.cc +++ b/source/blender/editors/space_spreadsheet/spreadsheet_ops.cc @@ -114,7 +114,7 @@ static int select_component_domain_invoke(bContext *C, sspreadsheet->attribute_domain = attribute_domain; /* Refresh header and main region. */ - WM_main_add_notifier(NC_SPACE | ND_SPACE_SPREADSHEET, NULL); + WM_main_add_notifier(NC_SPACE | ND_SPACE_SPREADSHEET, nullptr); return OPERATOR_FINISHED; } |