|
@@ -215,7 +215,10 @@ StringName NodePath::get_concatenated_names() const {
|
|
|
String concatenated;
|
|
|
const StringName *sn = data->path.ptr();
|
|
|
for (int i = 0; i < pc; i++) {
|
|
|
- concatenated += i == 0 ? sn[i].operator String() : "/" + sn[i];
|
|
|
+ if (i > 0) {
|
|
|
+ concatenated += "/";
|
|
|
+ }
|
|
|
+ concatenated += sn[i].operator String();
|
|
|
}
|
|
|
data->concatenated_path = concatenated;
|
|
|
}
|
|
@@ -230,7 +233,10 @@ StringName NodePath::get_concatenated_subnames() const {
|
|
|
String concatenated;
|
|
|
const StringName *ssn = data->subpath.ptr();
|
|
|
for (int i = 0; i < spc; i++) {
|
|
|
- concatenated += i == 0 ? ssn[i].operator String() : ":" + ssn[i];
|
|
|
+ if (i > 0) {
|
|
|
+ concatenated += ":";
|
|
|
+ }
|
|
|
+ concatenated += ssn[i].operator String();
|
|
|
}
|
|
|
data->concatenated_subpath = concatenated;
|
|
|
}
|