Sfoglia il codice sorgente

Fix GCC 14 -Wtemplate-id-cdtor warnings

Fixes #91206.

(cherry picked from commit a8ff47b6d6b5070b8247dfed85135b71a4a07cdf)
Rémi Verschelde 1 anno fa
parent
commit
ace153ad61
2 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 2 2
      core/ring_buffer.h
  2. 1 1
      core/safe_refcount.h

+ 2 - 2
core/ring_buffer.h

@@ -211,12 +211,12 @@ public:
 		size_mask = mask;
 	};
 
-	RingBuffer<T>(int p_power = 0) {
+	RingBuffer(int p_power = 0) {
 		read_pos = 0;
 		write_pos = 0;
 		resize(p_power);
 	};
-	~RingBuffer<T>(){};
+	~RingBuffer() {}
 };
 
 #endif

+ 1 - 1
core/safe_refcount.h

@@ -131,7 +131,7 @@ public:
 		}
 	}
 
-	_ALWAYS_INLINE_ explicit SafeNumeric<T>(T p_value = static_cast<T>(0)) {
+	_ALWAYS_INLINE_ explicit SafeNumeric(T p_value = static_cast<T>(0)) {
 		set(p_value);
 	}
 };