From e75671832606cf44d17cc96e5247bad7647035d7 Mon Sep 17 00:00:00 2001 From: Relintai Date: Thu, 22 Dec 2022 20:04:50 +0100 Subject: [PATCH] Add _FORCE_INLINE_ to String's resize(). --- core/string/ustring.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/string/ustring.h b/core/string/ustring.h index 572b3bdef..b1c0dadc7 100644 --- a/core/string/ustring.h +++ b/core/string/ustring.h @@ -219,7 +219,7 @@ public: _FORCE_INLINE_ CharType get(int p_index) const { return _cowdata.get(p_index); } _FORCE_INLINE_ void set(int p_index, const CharType &p_elem) { _cowdata.set(p_index, p_elem); } _FORCE_INLINE_ int size() const { return _cowdata.size(); } - Error resize(int p_size) { + _FORCE_INLINE_ Error resize(int p_size) { Error err = _cowdata.resize(p_size); //Ensure null terminator