From b7c42ef93edeadc28015a6eae184ff07f26e9c36 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 14 Jul 2015 09:17:00 +1000 Subject: Cleanup: use ascii as suffix (as with utf8) --- source/blender/windowmanager/intern/wm_operators.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/windowmanager') diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c index 60b102ccc65..c4f6a5aafdb 100644 --- a/source/blender/windowmanager/intern/wm_operators.c +++ b/source/blender/windowmanager/intern/wm_operators.c @@ -543,7 +543,7 @@ void WM_operator_py_idname(char *to, const char *from) /* note, we use ascii tolower instead of system tolower, because the * latter depends on the locale, and can lead to idname mismatch */ memcpy(to, from, sizeof(char) * ofs); - BLI_ascii_strtolower(to, ofs); + BLI_str_tolower_ascii(to, ofs); to[ofs] = '.'; BLI_strncpy(to + (ofs + 1), sep + 4, OP_MAX_TYPENAME - (ofs + 1)); @@ -564,7 +564,7 @@ void WM_operator_bl_idname(char *to, const char *from) int ofs = (sep - from); memcpy(to, from, sizeof(char) * ofs); - BLI_ascii_strtoupper(to, ofs); + BLI_str_toupper_ascii(to, ofs); strcpy(to + ofs, "_OT_"); strcpy(to + (ofs + 4), sep + 1); } -- cgit v1.2.3