1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Use compile-time Unicode string conversion

Thanks to this syntax introduced in C++11, this reduces the amount of work
that needs to be performed at run-time while making the code more terse.
This commit is contained in:
Hugo Locurcio
2023-08-07 10:37:41 +02:00
parent 16a93563bf
commit e9f723006a
11 changed files with 19 additions and 19 deletions

View File

@@ -294,7 +294,7 @@ void SceneTreeEditor::_add_nodes(Node *p_node, TreeItem *p_parent) {
}
// Improve looks on tooltip, extra spacing on non-bullet point newlines.
const String bullet_point = String::utf8("");
const String bullet_point = U"";
int next_newline = 0;
while (next_newline != -1) {
next_newline = conf_warning.find("\n", next_newline + 2);