diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-02-03 22:21:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-03 22:21:24 +0100 |
commit | f8f19b313d62b707467c54d245b9c3e0ad53f34f (patch) | |
tree | 975f9c64fe51c3809c7c3b2eb0cd46d3563d2bd2 /core/io/resource.h | |
parent | 025e778020dde6dcee89f5ae1e2a63ccddc24340 (diff) | |
parent | adbe948bda202209b55249198e1837324e703ddb (diff) |
Merge pull request #57562 from AnilBK/string-add-contains
String: Add contains().
Diffstat (limited to 'core/io/resource.h')
-rw-r--r-- | core/io/resource.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/resource.h b/core/io/resource.h index dea2160616..b1e1c15541 100644 --- a/core/io/resource.h +++ b/core/io/resource.h @@ -105,7 +105,7 @@ public: virtual void set_path(const String &p_path, bool p_take_over = false); String get_path() const; - _FORCE_INLINE_ bool is_built_in() const { return path_cache.is_empty() || path_cache.find("::") != -1 || path_cache.begins_with("local://"); } + _FORCE_INLINE_ bool is_built_in() const { return path_cache.is_empty() || path_cache.contains("::") || path_cache.begins_with("local://"); } static String generate_scene_unique_id(); void set_scene_unique_id(const String &p_id); |