Cleanup: fix clang-tidy warnings

Fix clang-tidy warnings introduced by a recent commit on the release
branch.

No functional changes.
This commit is contained in:
2021-11-23 13:02:00 +01:00
parent cd2849c89b
commit 3e65bb86f9

View File

@@ -757,7 +757,7 @@ static int asset_bundle_install_exec(bContext *C, wmOperator *op)
BLI_assert_msg(lib, "If the asset library is not known, how did we get here?");
BKE_reportf(op->reports,
RPT_INFO,
"Saved \"%s\" to asset library \"%s\"",
R"(Saved "%s" to asset library "%s")",
BLI_path_basename(bmain->name),
lib->name);
return OPERATOR_FINISHED;
@@ -844,7 +844,7 @@ static bool set_filepath_for_asset_lib(const Main *bmain, struct wmOperator *op)
/* Concatenate the filename of the current blend file. */
const char *blend_filename = BLI_path_basename(bmain->name);
if (blend_filename == NULL || blend_filename[0] == '\0') {
if (blend_filename == nullptr || blend_filename[0] == '\0') {
return false;
}