Cleanup: fix compiler warning

Warning C4551: function call missing argument list.

Pull Request: https://projects.blender.org/blender/blender/pulls/107237
This commit is contained in:
illua1
2023-04-24 17:37:31 +02:00
committed by Brecht Van Lommel
parent 4504a13bd9
commit aeb15e4e76

View File

@@ -3158,12 +3158,14 @@ static bool ui_textedit_insert_buf(uiBut *but,
return changed;
}
#ifdef WITH_INPUT_IME
static bool ui_textedit_insert_ascii(uiBut *but, uiHandleButtonData *data, const char ascii)
{
BLI_assert(isascii(ascii));
const char buf[2] = {ascii, '\0'};
return ui_textedit_insert_buf(but, data, buf, sizeof(buf) - 1);
}
#endif
static void ui_textedit_move(uiBut *but,
uiHandleButtonData *data,
@@ -3940,9 +3942,6 @@ static void ui_do_but_textedit(
else if (event->type == WM_IME_COMPOSITE_END) {
changed = true;
}
#else
/* Prevent the function from being unused. */
(void)ui_textedit_insert_ascii;
#endif
if (changed) {