mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-02 12:21:02 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user