1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-13 17:49:10 +00:00

Codefix: First format argument of IConsolePrint not passed by reference (#12966)

This commit is contained in:
Jonathan G Rennison
2024-10-01 14:12:19 +01:00
committed by GitHub
parent 7a0e50002b
commit 386dbb7c80

@@ -38,7 +38,7 @@ void IConsolePrint(TextColour colour_code, const std::string &string);
* @tparam Args The types of the other arguments. * @tparam Args The types of the other arguments.
*/ */
template <typename A, typename ... Args> template <typename A, typename ... Args>
inline void IConsolePrint(TextColour colour_code, fmt::format_string<A, Args...> format, A first_arg, Args&&... other_args) inline void IConsolePrint(TextColour colour_code, fmt::format_string<A, Args...> format, A&& first_arg, Args&&... other_args)
{ {
/* The separate first_arg argument is added to aid overloading. /* The separate first_arg argument is added to aid overloading.
* Otherwise the calls that do no need formatting will still use this function. */ * Otherwise the calls that do no need formatting will still use this function. */