From 531558d05c436f0a06077f7caf3abb240c2d08d3 Mon Sep 17 00:00:00 2001 From: Paperomo <60154085+Paperomo@users.noreply.github.com> Date: Fri, 3 Oct 2025 20:11:46 -0700 Subject: [PATCH] Update common_engine_methods_and_macros.rst the .cstr() function on String appears to be removed. code does not compile when used in a C++ Module. in 4.5 --- .../architecture/common_engine_methods_and_macros.rst | 5 ----- 1 file changed, 5 deletions(-) diff --git a/engine_details/architecture/common_engine_methods_and_macros.rst b/engine_details/architecture/common_engine_methods_and_macros.rst index cd30dc39826..b27a86d0c75 100644 --- a/engine_details/architecture/common_engine_methods_and_macros.rst +++ b/engine_details/architecture/common_engine_methods_and_macros.rst @@ -54,11 +54,6 @@ in a way similar to C's ``sprintf()``: vformat("%d bugs on the wall!", 1234); vformat("Pi is approximately %f.", 3.1416); - // Converts the resulting String into a `const char *`. - // You may need to do this if passing the result as an argument - // to a method that expects a `const char *` instead of a String. - vformat("My name is %s.", "Godette").c_str(); - In most cases, try to use ``vformat()`` instead of string concatenation as it makes for more readable code.