Cleanup: match declaration names, avoid shadowing & clear trailing space

This commit is contained in:
Campbell Barton
2024-10-03 12:08:51 +10:00
parent 4fa3dc0dd4
commit 952e1d46d1
6 changed files with 10 additions and 9 deletions

View File

@@ -47,7 +47,7 @@ Checks: >
-modernize-pass-by-value,
-modernize-raw-string-literal,
-modernize-return-braced-init-list,
objc-*
CheckOptions:

View File

@@ -30,7 +30,7 @@ ExternalProject_Add(external_shaderc_spirv_tools
URL_HASH ${SHADERC_SPIRV_TOOLS_HASH_TYPE}=${SHADERC_SPIRV_TOOLS_HASH}
DOWNLOAD_DIR ${DOWNLOAD_DIR}
PREFIX ${BUILD_DIR}/shaderc_spirv_tools
PATCH_COMMAND COMMAND ${PATCH_CMD} -p 1 -d
${BUILD_DIR}/shaderc_spirv_tools/src/external_shaderc_spirv_tools <
${PATCH_DIR}/shaderc_spirv_tools_5805.diff

View File

@@ -6,4 +6,4 @@ include("${CMAKE_CURRENT_LIST_DIR}/../../cmake/config/blender_release.cmake")
set(WITH_CYCLES_TEST_OSL ON CACHE BOOL "" FORCE)
set(HIPRT_COMPILER_PARALLEL_JOBS 4 CACHE STRING "" FORCE)
set(HIPRT_COMPILER_PARALLEL_JOBS 4 CACHE STRING "" FORCE)

View File

@@ -129,10 +129,11 @@ static std::string asset_blendfile_path_for_save(const bUserAssetLibrary &user_l
std::min(sizeof(base_name_filesafe), size_t(base_name.size() + 1)));
BLI_path_make_safe_filename(base_name_filesafe);
const std::string filepath = root_path + SEP + base_name_filesafe + BLENDER_ASSET_FILE_SUFFIX;
if (!BLI_is_file(filepath.c_str())) {
return filepath;
{
const std::string filepath = root_path + SEP + base_name_filesafe + BLENDER_ASSET_FILE_SUFFIX;
if (!BLI_is_file(filepath.c_str())) {
return filepath;
}
}
/* Avoid overwriting existing file by adding number suffix. */

View File

@@ -1782,7 +1782,7 @@ void UI_but_search_preview_grid_size_set(uiBut *but, int rows, int cols);
void UI_but_view_item_draw_size_set(uiBut *but,
const std::optional<int> draw_width = std::nullopt,
const std::optional<int> draw_heigh = std::nullopt);
const std::optional<int> draw_height = std::nullopt);
void UI_block_func_handle_set(uiBlock *block, uiBlockHandleFunc func, void *arg);
void UI_block_func_set(uiBlock *block, uiButHandleFunc func, void *arg1, void *arg2);

View File

@@ -141,7 +141,7 @@ class AbstractTreeView : public AbstractView, public TreeViewItemContainer {
* are fewer items, empty dummy items will be added. These contribute to the view bounds, so the
* drop target of the view includes them, but they are not interactive (e.g. no mouse-hover
* highlight). */
void set_default_rows(int min_rows);
void set_default_rows(int default_rows);
protected:
virtual void build_tree() = 0;