Replace String comparisons with "", String() to is_empty()
Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
This commit is contained in:
parent
31ded7e126
commit
49403cbfa0
226 changed files with 1051 additions and 1034 deletions
|
|
@ -431,7 +431,7 @@ bool EditorPropertyArray::_is_drop_valid(const Dictionary &p_drag_data) const {
|
|||
|
||||
// When the subtype is of type Object, an additional subtype may be specified in the hint string
|
||||
// (e.g. Resource, Texture2D, ShaderMaterial, etc). We want the allowed type to be that, not just "Object".
|
||||
if (subtype == Variant::OBJECT && subtype_hint_string != "") {
|
||||
if (subtype == Variant::OBJECT && !subtype_hint_string.is_empty()) {
|
||||
allowed_type = subtype_hint_string;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue