You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Some code changed with Clang-Tidy
This commit is contained in:
@@ -1094,7 +1094,7 @@ void AnimationNodeStateMachineEditor::_removed_from_graph() {
|
||||
|
||||
void AnimationNodeStateMachineEditor::_name_edited(const String &p_text) {
|
||||
|
||||
String new_name = p_text;
|
||||
const String &new_name = p_text;
|
||||
|
||||
ERR_FAIL_COND(new_name == "" || new_name.find(".") != -1 || new_name.find("/") != -1);
|
||||
|
||||
@@ -1102,7 +1102,7 @@ void AnimationNodeStateMachineEditor::_name_edited(const String &p_text) {
|
||||
return; // Nothing to do.
|
||||
}
|
||||
|
||||
String base_name = new_name;
|
||||
const String &base_name = new_name;
|
||||
int base = 1;
|
||||
String name = base_name;
|
||||
while (state_machine->has_node(name)) {
|
||||
@@ -1365,7 +1365,7 @@ AnimationNodeStateMachineEditor::AnimationNodeStateMachineEditor() {
|
||||
error_panel->add_child(error_label);
|
||||
error_panel->hide();
|
||||
|
||||
undo_redo = EditorNode::get_singleton()->get_undo_redo();
|
||||
undo_redo = EditorNode::get_undo_redo();
|
||||
|
||||
set_custom_minimum_size(Size2(0, 300 * EDSCALE));
|
||||
|
||||
@@ -1390,7 +1390,7 @@ AnimationNodeStateMachineEditor::AnimationNodeStateMachineEditor() {
|
||||
open_file->set_title(TTR("Open Animation Node"));
|
||||
open_file->set_mode(EditorFileDialog::MODE_OPEN_FILE);
|
||||
open_file->connect("file_selected", this, "_file_opened");
|
||||
undo_redo = EditorNode::get_singleton()->get_undo_redo();
|
||||
undo_redo = EditorNode::get_undo_redo();
|
||||
|
||||
over_text = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user