summaryrefslogtreecommitdiffstats
path: root/core/string
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2024-03-07 20:29:49 -0600
committerThaddeus Crews <repiteo@outlook.com>2024-03-07 22:39:09 -0600
commit9903e6779b70fc03aae70a37b9cf053f4f355b91 (patch)
tree16ee7fbb98471ff6b4f3ea97e9a9389ae33282ea /core/string
parentaef11a14274f6f9e74ad91ead1d7c07ea1dd7f5f (diff)
downloadredot-engine-9903e6779b70fc03aae70a37b9cf053f4f355b91.tar.gz
Enforce template syntax `typename` over `class`
Diffstat (limited to 'core/string')
-rw-r--r--core/string/ustring.cpp2
-rw-r--r--core/string/ustring.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/core/string/ustring.cpp b/core/string/ustring.cpp
index 1d27933016..a7e12138f2 100644
--- a/core/string/ustring.cpp
+++ b/core/string/ustring.cpp
@@ -2459,7 +2459,7 @@ bool String::is_numeric() const {
return true; // TODO: Use the parser below for this instead
}
-template <class C>
+template <typename C>
static double built_in_strtod(
/* A decimal ASCII floating-point number,
* optionally preceded by white space. Must
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...);