Browse Source

Merge pull request #105384 from bruvzg/no_auto

Remove `auto` misuse cases.
Thaddeus Crews 4 months ago
parent
commit
72fbbb49cd
2 changed files with 2 additions and 2 deletions
  1. 1 1
      servers/camera/camera_feed.cpp
  2. 1 1
      tests/core/templates/test_a_hash_map.h

+ 1 - 1
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);
 	}
 

+ 1 - 1
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<int, int> &K : map) {
 		CHECK(idx == K.key);
 		CHECK(idx == K.value);
 		CHECK(map.has(idx));