|
@@ -171,10 +171,9 @@ public:
|
|
|
_FORCE_INLINE_ CharProxy<char16_t> operator[](int p_index) { return CharProxy<char16_t>(p_index, _cowdata); }
|
|
|
|
|
|
_FORCE_INLINE_ Char16String() {}
|
|
|
- _FORCE_INLINE_ Char16String(const Char16String &p_str) { _cowdata._ref(p_str._cowdata); }
|
|
|
- _FORCE_INLINE_ Char16String(Char16String &&p_str) :
|
|
|
- _cowdata(std::move(p_str._cowdata)) {}
|
|
|
- _FORCE_INLINE_ void operator=(const Char16String &p_str) { _cowdata._ref(p_str._cowdata); }
|
|
|
+ _FORCE_INLINE_ Char16String(const Char16String &p_str) = default;
|
|
|
+ _FORCE_INLINE_ Char16String(Char16String &&p_str) = default;
|
|
|
+ _FORCE_INLINE_ void operator=(const Char16String &p_str) { _cowdata = p_str._cowdata; }
|
|
|
_FORCE_INLINE_ void operator=(Char16String &&p_str) { _cowdata = std::move(p_str._cowdata); }
|
|
|
_FORCE_INLINE_ Char16String(const char16_t *p_cstr) { copy_from(p_cstr); }
|
|
|
|
|
@@ -218,10 +217,9 @@ public:
|
|
|
_FORCE_INLINE_ CharProxy<char> operator[](int p_index) { return CharProxy<char>(p_index, _cowdata); }
|
|
|
|
|
|
_FORCE_INLINE_ CharString() {}
|
|
|
- _FORCE_INLINE_ CharString(const CharString &p_str) { _cowdata._ref(p_str._cowdata); }
|
|
|
- _FORCE_INLINE_ CharString(CharString &&p_str) :
|
|
|
- _cowdata(std::move(p_str._cowdata)) {}
|
|
|
- _FORCE_INLINE_ void operator=(const CharString &p_str) { _cowdata._ref(p_str._cowdata); }
|
|
|
+ _FORCE_INLINE_ CharString(const CharString &p_str) = default;
|
|
|
+ _FORCE_INLINE_ CharString(CharString &&p_str) = default;
|
|
|
+ _FORCE_INLINE_ void operator=(const CharString &p_str) { _cowdata = p_str._cowdata; }
|
|
|
_FORCE_INLINE_ void operator=(CharString &&p_str) { _cowdata = std::move(p_str._cowdata); }
|
|
|
_FORCE_INLINE_ CharString(const char *p_cstr) { copy_from(p_cstr); }
|
|
|
|
|
@@ -609,13 +607,12 @@ public:
|
|
|
*/
|
|
|
|
|
|
_FORCE_INLINE_ String() {}
|
|
|
- _FORCE_INLINE_ String(const String &p_str) { _cowdata._ref(p_str._cowdata); }
|
|
|
- _FORCE_INLINE_ String(String &&p_str) :
|
|
|
- _cowdata(std::move(p_str._cowdata)) {}
|
|
|
+ _FORCE_INLINE_ String(const String &p_str) = default;
|
|
|
+ _FORCE_INLINE_ String(String &&p_str) = default;
|
|
|
#ifdef SIZE_EXTRA
|
|
|
_NO_INLINE_ ~String() {}
|
|
|
#endif
|
|
|
- _FORCE_INLINE_ void operator=(const String &p_str) { _cowdata._ref(p_str._cowdata); }
|
|
|
+ _FORCE_INLINE_ void operator=(const String &p_str) { _cowdata = p_str._cowdata; }
|
|
|
_FORCE_INLINE_ void operator=(String &&p_str) { _cowdata = std::move(p_str._cowdata); }
|
|
|
|
|
|
Vector<uint8_t> to_ascii_buffer() const;
|