From 501c64a12fcc9d3867d615c114571add4758a608 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pa=CC=84vels=20Nadtoc=CC=8Cajevs?= <7645683+bruvzg@users.noreply.github.com> Date: Mon, 14 Apr 2025 16:54:57 +0300 Subject: [PATCH] Remove `auto` misuse cases. --- servers/camera/camera_feed.cpp | 2 +- tests/core/templates/test_a_hash_map.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/camera/camera_feed.cpp b/servers/camera/camera_feed.cpp index 18d898785c5..522a5593af8 100644 --- a/servers/camera/camera_feed.cpp +++ b/servers/camera/camera_feed.cpp @@ -268,7 +268,7 @@ void CameraFeed::set_external(int p_width, int p_height) { base_width = p_width; 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); } diff --git a/tests/core/templates/test_a_hash_map.h b/tests/core/templates/test_a_hash_map.h index f3c412a183a..ae51bdad1c5 100644 --- a/tests/core/templates/test_a_hash_map.h +++ b/tests/core/templates/test_a_hash_map.h @@ -207,7 +207,7 @@ TEST_CASE("[AHashMap] Insert, iterate and remove many elements") { //insert order should have been kept int idx = 0; - for (auto &K : map) { + for (const KeyValue &K : map) { CHECK(idx == K.key); CHECK(idx == K.value); CHECK(map.has(idx));