mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Remove unused parameter in __constant_get_enum_name/__constant_get_bitfield_name
Removed unused String parameter in __constant_get_enum_name() and __constant_get_bitfield_name() to avoid creating/destroying extra Strings.
This commit is contained in:
parent
fcd1cf8d57
commit
cfde73ac17
3 changed files with 24 additions and 24 deletions
|
|
@ -205,7 +205,7 @@ inline String enum_qualified_name_to_class_info_name(const String &p_qualified_n
|
|||
};
|
||||
|
||||
template <typename T>
|
||||
inline StringName __constant_get_enum_name(T param, const String &p_constant) {
|
||||
inline StringName __constant_get_enum_name(T param) {
|
||||
return GetTypeInfo<T>::get_class_info().class_name;
|
||||
}
|
||||
|
||||
|
|
@ -230,7 +230,7 @@ inline StringName __constant_get_enum_name(T param, const String &p_constant) {
|
|||
};
|
||||
|
||||
template <typename T>
|
||||
inline StringName __constant_get_bitfield_name(T param, const String &p_constant) {
|
||||
inline StringName __constant_get_bitfield_name(T param) {
|
||||
return GetTypeInfo<BitField<T>>::get_class_info().class_name;
|
||||
}
|
||||
#define CLASS_INFO(m_type) (GetTypeInfo<m_type *>::get_class_info())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue