From c706defb185d941dc85e553d17cf449e48fd4585 Mon Sep 17 00:00:00 2001 From: Vankata453 <78196474+Vankata453@users.noreply.github.com> Date: Fri, 2 Aug 2024 23:55:40 +0300 Subject: [PATCH] Scripting docs generator: Display `const std::string&` return type as `string` --- tools/scripting_docs_gen/parser.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/scripting_docs_gen/parser.cpp b/tools/scripting_docs_gen/parser.cpp index 460dbf6183f..bb002c28217 100644 --- a/tools/scripting_docs_gen/parser.cpp +++ b/tools/scripting_docs_gen/parser.cpp @@ -42,7 +42,9 @@ static const std::unordered_map s_simplified_types = { { "unsigned long long", "int" }, { "double", "float" }, { "std::string", "string" }, - { "std::wstring", "string" } + { "std::wstring", "string" }, + { "const std::string &", "string" }, + { "const std::wstring &", "string" } }; static void parse_base_classes(tinyxml2::XMLElement* p_inheritancenode, tinyxml2::XMLElement* p_inheritancegraph, Class::BaseClasses& list)