mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Skip copying values constructed immediately before returning
This commit is contained in:
parent
9283328fe7
commit
754d49ac81
14 changed files with 35 additions and 60 deletions
|
|
@ -271,7 +271,7 @@ Ref<RegExMatch> RegEx::search(const String &p_subject, int p_offset, int p_end)
|
|||
}
|
||||
|
||||
TypedArray<RegExMatch> RegEx::search_all(const String &p_subject, int p_offset, int p_end) const {
|
||||
ERR_FAIL_COND_V_MSG(p_offset < 0, Array(), "RegEx search offset must be >= 0");
|
||||
ERR_FAIL_COND_V_MSG(p_offset < 0, TypedArray<RegExMatch>(), "RegEx search offset must be >= 0");
|
||||
|
||||
int last_end = 0;
|
||||
TypedArray<RegExMatch> result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue