From 07c4dc1b30972551ea77683e170368a8c9c8208f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20J=2E=20Est=C3=A9banez?= Date: Wed, 15 Apr 2020 14:24:05 +0200 Subject: [PATCH] Avoid invocation to Object's copy constructor Needed for the next commit. That's the only place in all the Godot code base where that's attempted and it's not needed because Objects are not meant to be copied that way. --- scene/gui/rich_text_label.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scene/gui/rich_text_label.cpp b/scene/gui/rich_text_label.cpp index a6d28465023..f414098b230 100644 --- a/scene/gui/rich_text_label.cpp +++ b/scene/gui/rich_text_label.cpp @@ -2884,15 +2884,15 @@ Dictionary RichTextLabel::parse_expressions_for_values(Vector p_expressi Vector values = parts[1].split(",", false); - RegEx color = RegEx(); + RegEx color; color.compile("^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$"); - RegEx nodepath = RegEx(); + RegEx nodepath; nodepath.compile("^\\$"); - RegEx boolean = RegEx(); + RegEx boolean; boolean.compile("^(true|false)$"); - RegEx decimal = RegEx(); + RegEx decimal; decimal.compile("^-?^.?\\d+(\\.\\d+?)?$"); - RegEx numerical = RegEx(); + RegEx numerical; numerical.compile("^\\d+$"); for (int j = 0; j < values.size(); j++) {