@@ -171,10 +171,9 @@ class Char16String {
171171 _FORCE_INLINE_ CharProxy<char16_t > operator [](int p_index) { return CharProxy<char16_t >(p_index, _cowdata); }
172172
173173 _FORCE_INLINE_ Char16String () {}
174- _FORCE_INLINE_ Char16String (const Char16String &p_str) { _cowdata._ref (p_str._cowdata ); }
175- _FORCE_INLINE_ Char16String (Char16String &&p_str) :
176- _cowdata(std::move(p_str._cowdata)) {}
177- _FORCE_INLINE_ void operator =(const Char16String &p_str) { _cowdata._ref (p_str._cowdata ); }
174+ _FORCE_INLINE_ Char16String (const Char16String &p_str) = default;
175+ _FORCE_INLINE_ Char16String (Char16String &&p_str) = default;
176+ _FORCE_INLINE_ void operator =(const Char16String &p_str) { _cowdata = p_str._cowdata ; }
178177 _FORCE_INLINE_ void operator =(Char16String &&p_str) { _cowdata = std::move (p_str._cowdata ); }
179178 _FORCE_INLINE_ Char16String (const char16_t *p_cstr) { copy_from (p_cstr); }
180179
@@ -218,10 +217,9 @@ class CharString {
218217 _FORCE_INLINE_ CharProxy<char > operator [](int p_index) { return CharProxy<char >(p_index, _cowdata); }
219218
220219 _FORCE_INLINE_ CharString () {}
221- _FORCE_INLINE_ CharString (const CharString &p_str) { _cowdata._ref (p_str._cowdata ); }
222- _FORCE_INLINE_ CharString (CharString &&p_str) :
223- _cowdata(std::move(p_str._cowdata)) {}
224- _FORCE_INLINE_ void operator =(const CharString &p_str) { _cowdata._ref (p_str._cowdata ); }
220+ _FORCE_INLINE_ CharString (const CharString &p_str) = default;
221+ _FORCE_INLINE_ CharString (CharString &&p_str) = default;
222+ _FORCE_INLINE_ void operator =(const CharString &p_str) { _cowdata = p_str._cowdata ; }
225223 _FORCE_INLINE_ void operator =(CharString &&p_str) { _cowdata = std::move (p_str._cowdata ); }
226224 _FORCE_INLINE_ CharString (const char *p_cstr) { copy_from (p_cstr); }
227225
@@ -609,13 +607,12 @@ class String {
609607 */
610608
611609 _FORCE_INLINE_ String () {}
612- _FORCE_INLINE_ String (const String &p_str) { _cowdata._ref (p_str._cowdata ); }
613- _FORCE_INLINE_ String (String &&p_str) :
614- _cowdata(std::move(p_str._cowdata)) {}
610+ _FORCE_INLINE_ String (const String &p_str) = default;
611+ _FORCE_INLINE_ String (String &&p_str) = default;
615612#ifdef SIZE_EXTRA
616613 _NO_INLINE_ ~String () {}
617614#endif
618- _FORCE_INLINE_ void operator =(const String &p_str) { _cowdata. _ref ( p_str._cowdata ) ; }
615+ _FORCE_INLINE_ void operator =(const String &p_str) { _cowdata = p_str._cowdata ; }
619616 _FORCE_INLINE_ void operator =(String &&p_str) { _cowdata = std::move (p_str._cowdata ); }
620617
621618 Vector<uint8_t > to_ascii_buffer () const ;
0 commit comments