diff options
author | Campbell Barton <campbell@blender.org> | 2022-04-26 06:45:59 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-04-26 06:45:59 +0300 |
commit | 3ea6dbfe7364cfb1b8ef63defb263b687a2d8bd1 (patch) | |
tree | 134fcb3c3c0e0659bc62a6946b6492e0c64a526e /source/blender/editors/space_view3d/view3d_navigate_zoom_border.c | |
parent | 98ad294d1719eb9cec01af08a0db16558e9964a5 (diff) |
Cleanup: simplify text copying string operations
- De-duplicate txt_new_linen & txt_new_line.
- Don't accept NULL as input for txt_new_linen & txt_new_line
(callers can pass in an empty string instead).
- Avoid duplicate strlen calls in txt_new_linen.
- Use memcpy when the length of the string is known in txt_delete_sel &
BKE_text_load_ex.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_navigate_zoom_border.c')
0 files changed, 0 insertions, 0 deletions