瀏覽代碼

Fix GCC 14 -Wtemplate-id-cdtor warnings

Fixes #91206.

(cherry picked from commit a8ff47b6d6b5070b8247dfed85135b71a4a07cdf)
Rémi Verschelde 1 年之前
父節點
當前提交
6c99b77a81
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2 2
      core/templates/ring_buffer.h
  2. 1 1
      core/templates/safe_refcount.h

+ 2 - 2
core/templates/ring_buffer.h

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

+ 1 - 1
core/templates/safe_refcount.h

@@ -132,7 +132,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);
 	}
 };