summaryrefslogtreecommitdiffstats
path: root/core/string/ustring.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-03-14 22:34:37 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-03-14 22:34:37 +0100
commit453485aede521b3c6d2d960bad94acc2eb90f177 (patch)
treedd7aa8b68791c8b20bce11906810b88a84293d5c /core/string/ustring.h
parent31acb61c16945244c2c2b61f6b3d663b40dce016 (diff)
parent9d7215e6affce6917601fd4059062a413d69a252 (diff)
downloadredot-engine-453485aede521b3c6d2d960bad94acc2eb90f177.tar.gz
Merge pull request #89270 from Repiteo/enforce-typename-in-templates
Enforce template syntax `typename` over `class`
Diffstat (limited to 'core/string/ustring.h')
-rw-r--r--core/string/ustring.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/string/ustring.h b/core/string/ustring.h
index 468a015302..0fb72fccd2 100644
--- a/core/string/ustring.h
+++ b/core/string/ustring.h
@@ -43,7 +43,7 @@
/* CharProxy */
/*************************************************************************/
-template <class T>
+template <typename T>
class CharProxy {
friend class Char16String;
friend class CharString;
@@ -602,13 +602,13 @@ _FORCE_INLINE_ void sarray_add_str(Vector<String> &arr, const String &p_str) {
arr.push_back(p_str);
}
-template <class... P>
+template <typename... P>
_FORCE_INLINE_ void sarray_add_str(Vector<String> &arr, const String &p_str, P... p_args) {
arr.push_back(p_str);
sarray_add_str(arr, p_args...);
}
-template <class... P>
+template <typename... P>
_FORCE_INLINE_ Vector<String> sarray(P... p_args) {
Vector<String> arr;
sarray_add_str(arr, p_args...);