@@ -151,7 +151,7 @@ impl PropertyInfo {
151
151
{
152
152
self . variant_type == VariantType :: ARRAY
153
153
&& self . hint_info . hint == PropertyHint :: ARRAY_TYPE
154
- && self . hint_info . hint_string == T :: Via :: godot_type_name ( ) . into ( )
154
+ && self . hint_info . hint_string == GString :: from ( & T :: Via :: godot_type_name ( ) )
155
155
}
156
156
157
157
// ------------------------------------------------------------------------------------------------------------------------------------------
@@ -291,7 +291,7 @@ impl PropertyHintInfo {
291
291
let hint_string = if sys:: GdextBuild :: since_api ( "4.3" ) {
292
292
GString :: new ( )
293
293
} else {
294
- GString :: from ( type_name)
294
+ GString :: from ( & type_name)
295
295
} ;
296
296
297
297
Self {
@@ -304,23 +304,23 @@ impl PropertyHintInfo {
304
304
pub fn var_array_element < T : ArrayElement > ( ) -> Self {
305
305
Self {
306
306
hint : PropertyHint :: ARRAY_TYPE ,
307
- hint_string : GString :: from ( element_godot_type_name :: < T > ( ) ) ,
307
+ hint_string : GString :: from ( & element_godot_type_name :: < T > ( ) ) ,
308
308
}
309
309
}
310
310
311
311
/// Use for `#[export]` properties -- [`PROPERTY_HINT_TYPE_STRING`](PropertyHint::TYPE_STRING) with the **element** type string as hint string.
312
312
pub fn export_array_element < T : ArrayElement > ( ) -> Self {
313
313
Self {
314
314
hint : PropertyHint :: TYPE_STRING ,
315
- hint_string : GString :: from ( T :: element_type_string ( ) ) ,
315
+ hint_string : GString :: from ( & T :: element_type_string ( ) ) ,
316
316
}
317
317
}
318
318
319
319
/// Use for `#[export]` properties -- [`PROPERTY_HINT_TYPE_STRING`](PropertyHint::TYPE_STRING) with the **element** type string as hint string.
320
320
pub fn export_packed_array_element < T : PackedArrayElement > ( ) -> Self {
321
321
Self {
322
322
hint : PropertyHint :: TYPE_STRING ,
323
- hint_string : GString :: from ( T :: element_type_string ( ) ) ,
323
+ hint_string : GString :: from ( & T :: element_type_string ( ) ) ,
324
324
}
325
325
}
326
326
@@ -349,7 +349,7 @@ impl PropertyHintInfo {
349
349
D : ?Sized + ' static ,
350
350
{
351
351
PropertyHintInfo {
352
- hint_string : GString :: from ( get_dyn_property_hint_string :: < T , D > ( ) ) ,
352
+ hint_string : GString :: from ( & get_dyn_property_hint_string :: < T , D > ( ) ) ,
353
353
..PropertyHintInfo :: export_gd :: < T > ( )
354
354
}
355
355
}
0 commit comments