From c65425e3ac2c9757b3b6eb70a9e8410275c853e3 Mon Sep 17 00:00:00 2001 From: murata Date: Thu, 5 May 2022 00:52:13 +0900 Subject: [PATCH] AP_Scripting: Changed NULL to nullptr --- libraries/AP_Scripting/lua_scripts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Scripting/lua_scripts.cpp b/libraries/AP_Scripting/lua_scripts.cpp index 09c398cb74..0ab44a76dc 100644 --- a/libraries/AP_Scripting/lua_scripts.cpp +++ b/libraries/AP_Scripting/lua_scripts.cpp @@ -73,7 +73,7 @@ void lua_scripts::set_and_print_new_error_message(MAV_SEVERITY severity, const c va_copy(arg_list_copy, arg_list); // dry run to work out the required length - int len = hal.util->vsnprintf(NULL, 0, fmt, arg_list_copy); + int len = hal.util->vsnprintf(nullptr, 0, fmt, arg_list_copy); // finished with copy va_end(arg_list_copy);