diff options
author | Campbell Barton <campbell@blender.org> | 2022-09-19 07:47:27 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-09-19 07:52:27 +0300 |
commit | 6424fbca949e90991b0d6056b482b5ab6ba1fd11 (patch) | |
tree | 15293ec98673a1b07c70a62fae6621d70ae31f07 /source/blender/blenlib | |
parent | 4baa6e57bd4240e0dab1e2a1b426698ca4d593bc (diff) |
Cleanup: spelling
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/BLI_listbase_wrapper.hh | 2 | ||||
-rw-r--r-- | source/blender/blenlib/intern/BLI_memarena.c | 2 | ||||
-rw-r--r-- | source/blender/blenlib/intern/scanfill.c | 2 | ||||
-rw-r--r-- | source/blender/blenlib/intern/string_cursor_utf8.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenlib/BLI_listbase_wrapper.hh b/source/blender/blenlib/BLI_listbase_wrapper.hh index 2d631cb2441..a32243bc411 100644 --- a/source/blender/blenlib/BLI_listbase_wrapper.hh +++ b/source/blender/blenlib/BLI_listbase_wrapper.hh @@ -42,7 +42,7 @@ template<typename T> class ListBaseWrapper { Iterator &operator++() { - /* Some types store next/prev using `void *`, so cast is necessary. */ + /* Some types store `next/prev` using `void *`, so cast is necessary. */ current_ = static_cast<T *>(current_->next); return *this; } diff --git a/source/blender/blenlib/intern/BLI_memarena.c b/source/blender/blenlib/intern/BLI_memarena.c index ada2d27f9b2..71a5dd0e044 100644 --- a/source/blender/blenlib/intern/BLI_memarena.c +++ b/source/blender/blenlib/intern/BLI_memarena.c @@ -53,7 +53,7 @@ static void memarena_buf_free_all(struct MemBuf *mb) while (mb != NULL) { struct MemBuf *mb_next = mb->next; - /* Unpoison memory because MEM_freeN might overwrite it. */ + /* Unpoison memory because #MEM_freeN might overwrite it. */ BLI_asan_unpoison(mb, (uint)MEM_allocN_len(mb)); MEM_freeN(mb); diff --git a/source/blender/blenlib/intern/scanfill.c b/source/blender/blenlib/intern/scanfill.c index 92fd7f5937b..33d387a5447 100644 --- a/source/blender/blenlib/intern/scanfill.c +++ b/source/blender/blenlib/intern/scanfill.c @@ -44,7 +44,7 @@ typedef struct ScanFillVertLink { ScanFillEdge *edge_first, *edge_last; } ScanFillVertLink; -/* local funcs */ +/* Local functions. */ #define SF_EPSILON 0.00003f #define SF_EPSILON_SQ (SF_EPSILON * SF_EPSILON) diff --git a/source/blender/blenlib/intern/string_cursor_utf8.c b/source/blender/blenlib/intern/string_cursor_utf8.c index 7a23b4bb4ad..6b7151be969 100644 --- a/source/blender/blenlib/intern/string_cursor_utf8.c +++ b/source/blender/blenlib/intern/string_cursor_utf8.c @@ -206,7 +206,7 @@ void BLI_str_cursor_step_utf8(const char *str, * less complex since it doesn't need to do multi-byte stepping. */ -/* helper funcs so we can match BLI_str_cursor_step_utf8 */ +/* Helper functions so we can match #BLI_str_cursor_step_utf8. */ static bool cursor_step_next_utf32(const char32_t *UNUSED(str), size_t maxlen, int *pos) { if ((*pos) >= (int)maxlen) { |