From 88c01588aa0830e219eaa62588839e4d1e2883ce Mon Sep 17 00:00:00 2001 From: untodesu Date: Wed, 25 Jun 2025 00:44:36 +0500 Subject: Clang-format the entire source code --- core/binfile.cc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'core/binfile.cc') diff --git a/core/binfile.cc b/core/binfile.cc index 34af3ca..aa39039 100644 --- a/core/binfile.cc +++ b/core/binfile.cc @@ -1,4 +1,5 @@ #include "core/pch.hh" + #include "core/binfile.hh" #include "core/resource.hh" @@ -6,7 +7,7 @@ static emhash8::HashMap> resource_map; template<> -resource_ptr resource::load(const char *name, unsigned int flags) +resource_ptr resource::load(const char* name, unsigned int flags) { auto it = resource_map.find(name); @@ -35,10 +36,12 @@ resource_ptr resource::load(const char *name, unsigned int fla template<> void resource::hard_cleanup(void) { - for(const auto &it : resource_map) { - if(it.second.use_count() > 1L) + for(const auto& it : resource_map) { + if(it.second.use_count() > 1L) { spdlog::warn("resource: zombie resource [BinFile] {} [use_count={}]", it.first, it.second.use_count()); - else spdlog::debug("resource: releasing [BinFile] {}", it.first); + } else { + spdlog::debug("resource: releasing [BinFile] {}", it.first); + } delete[] it.second->buffer; } -- cgit