From b134434224254d4ac3fc73d023f2f6d914746690 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 7 Aug 2020 22:36:11 +1000 Subject: Cleanup: declare arrays arrays where possible --- source/blender/blenfont/intern/blf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/blenfont') diff --git a/source/blender/blenfont/intern/blf.c b/source/blender/blenfont/intern/blf.c index 2f7d5a60a6f..95b074fa2df 100644 --- a/source/blender/blenfont/intern/blf.c +++ b/source/blender/blenfont/intern/blf.c @@ -509,7 +509,7 @@ void BLF_color4fv(int fontid, const float rgba[4]) void BLF_color4f(int fontid, float r, float g, float b, float a) { - float rgba[4] = {r, g, b, a}; + const float rgba[4] = {r, g, b, a}; BLF_color4fv(fontid, rgba); } @@ -523,7 +523,7 @@ void BLF_color3fv_alpha(int fontid, const float rgb[3], float alpha) void BLF_color3f(int fontid, float r, float g, float b) { - float rgba[4] = {r, g, b, 1.0f}; + const float rgba[4] = {r, g, b, 1.0f}; BLF_color4fv(fontid, rgba); } -- cgit v1.2.3