From e0df1221bf50934063b8e881e2d2b48fb8a643c0 Mon Sep 17 00:00:00 2001 From: Ibrahn Sahir Date: Tue, 24 Jul 2018 16:06:49 +0100 Subject: removed redundant strlen calculation from String::substr --- core/ustring.h | 1 + 1 file changed, 1 insertion(+) (limited to 'core/ustring.h') diff --git a/core/ustring.h b/core/ustring.h index b57e9629d9..001d111d64 100644 --- a/core/ustring.h +++ b/core/ustring.h @@ -65,6 +65,7 @@ class String : public Vector { void copy_from(const char *p_cstr); void copy_from(const CharType *p_cstr, int p_clip_to = -1); void copy_from(const CharType &p_char); + void copy_from_unchecked(const CharType *p_char, int p_length); bool _base_is_subsequence_of(const String &p_string, bool case_insensitive) const; public: -- cgit v1.2.3