diff options
author | Hubert Jarosz <marqin.pl@gmail.com> | 2016-03-09 00:00:52 +0100 |
---|---|---|
committer | Hubert Jarosz <marqin.pl@gmail.com> | 2016-03-09 00:00:52 +0100 |
commit | 4a4f2479146aa33e235ed57cde311efda68d3c8f (patch) | |
tree | cf91f2869ff8f058c6682569fb31e22e5ee736ad /core/resource.cpp | |
parent | 1dad6eca812e5c2e313b54265114de8a1d73d999 (diff) | |
download | redot-engine-4a4f2479146aa33e235ed57cde311efda68d3c8f.tar.gz |
remove trailing whitespace
Diffstat (limited to 'core/resource.cpp')
-rw-r--r-- | core/resource.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/core/resource.cpp b/core/resource.cpp index e0706cf541..672e64b1bb 100644 --- a/core/resource.cpp +++ b/core/resource.cpp @@ -156,14 +156,14 @@ void Resource::_resource_path_changed() { } - + void Resource::set_path(const String& p_path, bool p_take_over) { if (path_cache==p_path) return; - + if (path_cache!="") { - + ResourceCache::resources.erase(path_cache); } @@ -179,19 +179,19 @@ void Resource::set_path(const String& p_path, bool p_take_over) { } path_cache=p_path; - + if (path_cache!="") { - + ResourceCache::resources[path_cache]=this;; } _change_notify("resource/path"); _resource_path_changed(); - + } String Resource::get_path() const { - + return path_cache; } @@ -342,7 +342,7 @@ Resource::Resource() { Resource::~Resource() { - + if (path_cache!="") ResourceCache::resources.erase(path_cache); if (owners.size()) { @@ -350,12 +350,12 @@ Resource::~Resource() { } } -HashMap<String,Resource*> ResourceCache::resources; +HashMap<String,Resource*> ResourceCache::resources; void ResourceCache::clear() { if (resources.size()) ERR_PRINT("Resources Still in use at Exit!"); - + resources.clear(); } @@ -374,18 +374,18 @@ void ResourceCache::reload_externals() { bool ResourceCache::has(const String& p_path) { GLOBAL_LOCK_FUNCTION - + return resources.has(p_path); } Resource *ResourceCache::get(const String& p_path) { - + GLOBAL_LOCK_FUNCTION - + Resource **res = resources.getptr(p_path); if (!res) { return NULL; } - + return *res; } |