You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Rename empty() to is_empty()
This commit is contained in:
@@ -163,7 +163,7 @@ void TreeItem::set_text(int p_column, String p_text) {
|
||||
cells.write[p_column].max = INT_MIN;
|
||||
for (int i = 0; i < strings.size(); i++) {
|
||||
int value = i;
|
||||
if (!strings[i].get_slicec(':', 1).empty()) {
|
||||
if (!strings[i].get_slicec(':', 1).is_empty()) {
|
||||
value = strings[i].get_slicec(':', 1).to_int();
|
||||
}
|
||||
cells.write[p_column].min = MIN(cells[p_column].min, value);
|
||||
@@ -1212,7 +1212,7 @@ void Tree::update_item_cell(TreeItem *p_item, int p_col) {
|
||||
Vector<String> strings = p_item->cells[p_col].text.split(",");
|
||||
for (int j = 0; j < strings.size(); j++) {
|
||||
int value = j;
|
||||
if (!strings[j].get_slicec(':', 1).empty()) {
|
||||
if (!strings[j].get_slicec(':', 1).is_empty()) {
|
||||
value = strings[j].get_slicec(':', 1).to_int();
|
||||
}
|
||||
if (option == value) {
|
||||
@@ -2031,7 +2031,7 @@ int Tree::propagate_mouse_event(const Point2i &p_pos, int x_ofs, int y_ofs, bool
|
||||
popup_menu->clear();
|
||||
for (int i = 0; i < c.text.get_slice_count(","); i++) {
|
||||
String s = c.text.get_slicec(',', i);
|
||||
popup_menu->add_item(s.get_slicec(':', 0), s.get_slicec(':', 1).empty() ? i : s.get_slicec(':', 1).to_int());
|
||||
popup_menu->add_item(s.get_slicec(':', 0), s.get_slicec(':', 1).is_empty() ? i : s.get_slicec(':', 1).to_int());
|
||||
}
|
||||
|
||||
popup_menu->set_size(Size2(col_width, 0));
|
||||
@@ -2930,7 +2930,7 @@ bool Tree::edit_selected() {
|
||||
popup_menu->clear();
|
||||
for (int i = 0; i < c.text.get_slice_count(","); i++) {
|
||||
String s2 = c.text.get_slicec(',', i);
|
||||
popup_menu->add_item(s2.get_slicec(':', 0), s2.get_slicec(':', 1).empty() ? i : s2.get_slicec(':', 1).to_int());
|
||||
popup_menu->add_item(s2.get_slicec(':', 0), s2.get_slicec(':', 1).is_empty() ? i : s2.get_slicec(':', 1).to_int());
|
||||
}
|
||||
|
||||
popup_menu->set_size(Size2(rect.size.width, 0));
|
||||
|
||||
Reference in New Issue
Block a user