diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-30 16:42:21 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-30 16:42:21 +0100 |
commit | 9eff2e24fa4cf0ffad2b47cc922a6558bc1a9fa1 (patch) | |
tree | e673cba5f221523d37f51b67a155abfc0c415eb3 /src/crepe/manager/ResourceManager.cpp | |
parent | f7d70abf3fee5933034d93f594f898849c5273ad (diff) |
`make format`
Diffstat (limited to 'src/crepe/manager/ResourceManager.cpp')
-rw-r--r-- | src/crepe/manager/ResourceManager.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/crepe/manager/ResourceManager.cpp b/src/crepe/manager/ResourceManager.cpp index 87585ad..7c01808 100644 --- a/src/crepe/manager/ResourceManager.cpp +++ b/src/crepe/manager/ResourceManager.cpp @@ -18,17 +18,13 @@ void ResourceManager::clear() { }); } -void ResourceManager::clear_all() { - this->resources.clear(); -} +void ResourceManager::clear_all() { this->resources.clear(); } void ResourceManager::set_persistent(const Asset & asset, bool persistent) { this->get_entry(asset).persistent = persistent; } ResourceManager::CacheEntry & ResourceManager::get_entry(const Asset & asset) { - if (!this->resources.contains(asset)) - this->resources[asset] = {}; + if (!this->resources.contains(asset)) this->resources[asset] = {}; return this->resources.at(asset); } - |