You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Initialize class/struct variables with default values in modules/
This commit is contained in:
@@ -365,12 +365,10 @@ Array RegEx::get_names() const {
|
||||
|
||||
RegEx::RegEx() {
|
||||
general_ctx = pcre2_general_context_create_32(&_regex_malloc, &_regex_free, nullptr);
|
||||
code = nullptr;
|
||||
}
|
||||
|
||||
RegEx::RegEx(const String &p_pattern) {
|
||||
general_ctx = pcre2_general_context_create_32(&_regex_malloc, &_regex_free, nullptr);
|
||||
code = nullptr;
|
||||
compile(p_pattern);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user