Cleanup: correct function name spelling

This commit is contained in:
Campbell Barton
2024-05-29 12:35:09 +10:00
parent f0603d8fac
commit e3a6eed5c5
4 changed files with 7 additions and 7 deletions

View File

@@ -920,9 +920,9 @@ static bool associate_blend_poll(bContext *C)
}
#if !defined(__APPLE__)
static bool assosiate_blend(bool do_register, bool all_users, char **error_msg)
static bool associate_blend(bool do_register, bool all_users, char **error_msg)
{
const bool result = WM_platform_assosiate_set(do_register, all_users, error_msg);
const bool result = WM_platform_associate_set(do_register, all_users, error_msg);
# ifdef WIN32
if ((result == false) &&
/* For some reason the message box isn't shown in this case. */
@@ -957,7 +957,7 @@ static int associate_blend_exec(bContext * /*C*/, wmOperator *op)
char *error_msg = nullptr;
WM_cursor_wait(true);
const bool success = assosiate_blend(true, all_users, &error_msg);
const bool success = associate_blend(true, all_users, &error_msg);
WM_cursor_wait(false);
if (!success) {
@@ -1005,7 +1005,7 @@ static int unassociate_blend_exec(bContext * /*C*/, wmOperator *op)
char *error_msg = nullptr;
WM_cursor_wait(true);
bool success = assosiate_blend(false, all_users, &error_msg);
bool success = associate_blend(false, all_users, &error_msg);
WM_cursor_wait(false);
if (!success) {

View File

@@ -1897,7 +1897,7 @@ bool WM_region_use_viewport(ScrArea *area, ARegion *region);
/**
* \return Success.
*/
bool WM_platform_assosiate_set(bool do_register, bool all_users, char **r_error_msg);
bool WM_platform_associate_set(bool do_register, bool all_users, char **r_error_msg);
#ifdef WITH_XR_OPENXR
/* `wm_xr_session.cc` */

View File

@@ -26,7 +26,7 @@
/** \name Register File Association
* \{ */
bool WM_platform_assosiate_set(bool do_register, bool all_users, char **r_error_msg)
bool WM_platform_associate_set(bool do_register, bool all_users, char **r_error_msg)
{
bool result = false;
*r_error_msg = nullptr;

View File

@@ -1677,7 +1677,7 @@ static bool arg_handle_extension_registration(const bool do_register, const bool
{
/* Logic runs in #main_args_handle_registration. */
char *error_msg = nullptr;
bool result = WM_platform_assosiate_set(do_register, all_users, &error_msg);
bool result = WM_platform_associate_set(do_register, all_users, &error_msg);
if (error_msg) {
fprintf(stderr, "Error: %s\n", error_msg);
MEM_freeN(error_msg);