From 52eb1f2ba0e687fd39c7ea89b206d4f8a9ecb6f8 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 17 May 2023 13:07:38 +1000 Subject: [PATCH] Cleanup: use BLI_rename where overwriting isn't needed Use BLI_rename as the destination is removed before renaming. --- source/blender/imbuf/intern/indexer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/imbuf/intern/indexer.cc b/source/blender/imbuf/intern/indexer.cc index 540c3c1f8db..99918969a6d 100644 --- a/source/blender/imbuf/intern/indexer.cc +++ b/source/blender/imbuf/intern/indexer.cc @@ -148,7 +148,7 @@ void IMB_index_builder_finish(anim_index_builder *fp, int rollback) } else { unlink(fp->filepath); - BLI_rename_overwrite(fp->filepath_temp, fp->filepath); + BLI_rename(fp->filepath_temp, fp->filepath); } MEM_freeN(fp); @@ -784,7 +784,7 @@ static void free_proxy_output_ffmpeg(struct proxy_output_ctx *ctx, int rollback) else { get_proxy_filepath(ctx->anim, ctx->proxy_size, filepath, false); unlink(filepath); - BLI_rename_overwrite(filepath_tmp, filepath); + BLI_rename(filepath_tmp, filepath); } MEM_freeN(ctx);