diff options
author | Hans Goudey <h.goudey@me.com> | 2022-10-05 21:44:02 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-10-05 21:48:01 +0300 |
commit | 548a2cbe06b23d90b0e09da49fc854178c270b8a (patch) | |
tree | 8706b5be97ace0ff0ca18d4109586ccb5cf0a666 /source/blender/editors/space_spreadsheet | |
parent | 6306d747b770685f38f95bc57f8681335ddfa506 (diff) |
Cleanup: Clang tidy
Also remove unnecessary struct keywords in C++ files.
Diffstat (limited to 'source/blender/editors/space_spreadsheet')
-rw-r--r-- | source/blender/editors/space_spreadsheet/space_spreadsheet.cc | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/source/blender/editors/space_spreadsheet/space_spreadsheet.cc b/source/blender/editors/space_spreadsheet/space_spreadsheet.cc index b094222b16e..c546a371ef0 100644 --- a/source/blender/editors/space_spreadsheet/space_spreadsheet.cc +++ b/source/blender/editors/space_spreadsheet/space_spreadsheet.cc @@ -248,10 +248,8 @@ static void spreadsheet_update_context(const bContext *C) /* The pinned path is still valid, do nothing. */ break; } - else { - /* The pinned path does not exist anymore, clear pinning. */ - sspreadsheet->flag &= ~SPREADSHEET_FLAG_PINNED; - } + /* The pinned path does not exist anymore, clear pinning. */ + sspreadsheet->flag &= ~SPREADSHEET_FLAG_PINNED; } else { /* Unknown pinned path, clear pinning. */ @@ -266,11 +264,9 @@ static void spreadsheet_update_context(const bContext *C) /* Nothing changed. */ break; } - else { - /* Update the viewer path from the workspace. */ - BKE_viewer_path_clear(&sspreadsheet->viewer_path); - BKE_viewer_path_copy(&sspreadsheet->viewer_path, &workspace->viewer_path); - } + /* Update the viewer path from the workspace. */ + BKE_viewer_path_clear(&sspreadsheet->viewer_path); + BKE_viewer_path_copy(&sspreadsheet->viewer_path, &workspace->viewer_path); } else { /* No active viewer node, change back to showing evaluated active object. */ |