summaryrefslogtreecommitdiffstats
path: root/core/io/file_access.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/io/file_access.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/io/file_access.h')
-rw-r--r--core/io/file_access.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/io/file_access.h b/core/io/file_access.h
index 7d346ca2f4..122ae3b190 100644
--- a/core/io/file_access.h
+++ b/core/io/file_access.h
@@ -114,7 +114,7 @@ private:
AccessType _access_type = ACCESS_FILESYSTEM;
static CreateFunc create_func[ACCESS_MAX]; /** default file access creation function for a platform */
- template <class T>
+ template <typename T>
static Ref<FileAccess> _create_builtin() {
return memnew(T);
}
@@ -226,7 +226,7 @@ public:
static PackedByteArray _get_file_as_bytes(const String &p_path) { return get_file_as_bytes(p_path, &last_file_open_error); }
static String _get_file_as_string(const String &p_path) { return get_file_as_string(p_path, &last_file_open_error); }
- template <class T>
+ template <typename T>
static void make_default(AccessType p_access) {
create_func[p_access] = _create_builtin<T>;
}