1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-16 14:00:40 +00:00

Remove auto misuse cases.

This commit is contained in:
Pāvels Nadtočajevs
2025-04-14 16:54:57 +03:00
parent 215acd52e8
commit 501c64a12f
2 changed files with 2 additions and 2 deletions

View File

@@ -268,7 +268,7 @@ void CameraFeed::set_external(int p_width, int p_height) {
base_width = p_width; base_width = p_width;
base_height = p_height; base_height = p_height;
auto new_texture = RenderingServer::get_singleton()->texture_external_create(p_width, p_height, 0); RID new_texture = RenderingServer::get_singleton()->texture_external_create(p_width, p_height, 0);
RenderingServer::get_singleton()->texture_replace(texture[CameraServer::FEED_YCBCR_IMAGE], new_texture); RenderingServer::get_singleton()->texture_replace(texture[CameraServer::FEED_YCBCR_IMAGE], new_texture);
} }

View File

@@ -207,7 +207,7 @@ TEST_CASE("[AHashMap] Insert, iterate and remove many elements") {
//insert order should have been kept //insert order should have been kept
int idx = 0; int idx = 0;
for (auto &K : map) { for (const KeyValue<int, int> &K : map) {
CHECK(idx == K.key); CHECK(idx == K.key);
CHECK(idx == K.value); CHECK(idx == K.value);
CHECK(map.has(idx)); CHECK(map.has(idx));