From adbe948bda202209b55249198e1837324e703ddb Mon Sep 17 00:00:00 2001 From: Anilforextra Date: Thu, 3 Feb 2022 21:48:38 +0545 Subject: String: Add contains(). --- core/io/resource.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/io/resource.h') 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); -- cgit v1.2.3