Use get_slicec instead of get_slice for single character splitters

This commit is contained in:
A Thousand Ships
2024-11-16 17:16:07 +01:00
parent b5bdb88062
commit 466590d0ec
58 changed files with 210 additions and 210 deletions
+3 -3
View File
@@ -489,7 +489,7 @@ void DisplayServerWindows::_thread_fd_monitor(void *p_ud) {
int filter_slice_count = flt.get_slice_count(",");
Vector<String> exts;
for (int j = 0; j < filter_slice_count; j++) {
String str = (flt.get_slice(",", j).strip_edges());
String str = (flt.get_slicec(',', j).strip_edges());
if (!str.is_empty()) {
exts.push_back(str);
}
@@ -6486,8 +6486,8 @@ Vector2i _get_device_ids(const String &p_device_name) {
SysFreeString(object_name);
if (hr == S_OK) {
String device_id = String(V_BSTR(&did));
ids.x = device_id.get_slice("&", 0).lstrip("PCI\\VEN_").hex_to_int();
ids.y = device_id.get_slice("&", 1).lstrip("DEV_").hex_to_int();
ids.x = device_id.get_slicec('&', 0).lstrip("PCI\\VEN_").hex_to_int();
ids.y = device_id.get_slicec('&', 1).lstrip("DEV_").hex_to_int();
}
for (ULONG i = 0; i < resultCount; i++) {