From 934c2c8ac58c10a2b729435c40c96443371bc21b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 12 Nov 2020 15:17:07 +1100 Subject: Cleanup: clang-tidy, remove invalid comments --- source/blender/imbuf/IMB_imbuf.h | 2 +- source/blender/imbuf/intern/dds/dds_api.cpp | 1 - source/blender/imbuf/intern/dds/dds_api.h | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) (limited to 'source/blender/imbuf') diff --git a/source/blender/imbuf/IMB_imbuf.h b/source/blender/imbuf/IMB_imbuf.h index d947f4229a0..957352595ed 100644 --- a/source/blender/imbuf/IMB_imbuf.h +++ b/source/blender/imbuf/IMB_imbuf.h @@ -475,7 +475,7 @@ bool IMB_prepare_write_ImBuf(const bool isfloat, struct ImBuf *ibuf); */ bool IMB_ispic(const char *filepath); bool IMB_ispic_type_matches(const char *filepath, int filetype); -int IMB_ispic_type_from_memory(const unsigned char *mem, const size_t mem_size); +int IMB_ispic_type_from_memory(const unsigned char *buf, const size_t buf_size); int IMB_ispic_type(const char *filepath); /** diff --git a/source/blender/imbuf/intern/dds/dds_api.cpp b/source/blender/imbuf/intern/dds/dds_api.cpp index 5687824f9fd..804d8130b4c 100644 --- a/source/blender/imbuf/intern/dds/dds_api.cpp +++ b/source/blender/imbuf/intern/dds/dds_api.cpp @@ -72,7 +72,6 @@ bool imb_save_dds(struct ImBuf *ibuf, const char *name, int /*flags*/) return true; } -/* note: use at most first 32 bytes */ bool imb_is_a_dds(const unsigned char *mem, const size_t size) { if (size < 8) { diff --git a/source/blender/imbuf/intern/dds/dds_api.h b/source/blender/imbuf/intern/dds/dds_api.h index 9020529f210..931c4f267f9 100644 --- a/source/blender/imbuf/intern/dds/dds_api.h +++ b/source/blender/imbuf/intern/dds/dds_api.h @@ -26,7 +26,6 @@ extern "C" { #endif -/* use only first 32 bytes of mem */ bool imb_is_a_dds(const unsigned char *mem, const size_t size); bool imb_save_dds(struct ImBuf *ibuf, const char *name, int flags); struct ImBuf *imb_load_dds(const unsigned char *mem, -- cgit v1.2.3