From 959e1d08c36b44c9e72f0cf3835161e06dcbcaae Mon Sep 17 00:00:00 2001
From: HJfod <60038575+HJfod@users.noreply.github.com>
Date: Sat, 8 Oct 2022 14:00:23 +0300
Subject: [PATCH] code style fixes

---
 loader/src/load/Log.cpp     | 8 ++++----
 loader/src/load/ModInfo.cpp | 6 ++++--
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/loader/src/load/Log.cpp b/loader/src/load/Log.cpp
index 28aee6e9..cb5e4f09 100644
--- a/loader/src/load/Log.cpp
+++ b/loader/src/load/Log.cpp
@@ -73,19 +73,19 @@ std::string Log::toString(bool logTime) const {
     std::string res;
 
     if (logTime) {
-        const auto t = std::chrono::system_clock::to_time_t(this->m_time);
+        const auto t = std::chrono::system_clock::to_time_t(m_time);
         tm obj;
         #ifdef _MSC_VER
         localtime_s(&obj, &t);
         #else
         obj = *std::localtime(&t);
         #endif
-        res += fmt::format("{:%H:%M:%S}", this->m_time);
+        res += fmt::format("{:%H:%M:%S} ", m_time);
     }
 
-    res += fmt::format("[{}]:", this->m_sender ? this->m_sender->getName() : "?");
+    res += fmt::format("[{}]:", m_sender ? m_sender->getName() : "?");
 
-    for (ComponentTrait* i : this->m_components) {
+    for (auto& i : m_components) {
         res += i->_toString();
     }
 
diff --git a/loader/src/load/ModInfo.cpp b/loader/src/load/ModInfo.cpp
index 96eac652..e7ea4df9 100644
--- a/loader/src/load/ModInfo.cpp
+++ b/loader/src/load/ModInfo.cpp
@@ -89,8 +89,10 @@ Result<ModInfo> ModInfo::createFromSchemaV010(ModJson const& rawJson) {
     info.m_binaryName = info.m_id + GEODE_PLATFORM_EXTENSION;
 
     if (root.has("binary")) {
-        log::warn("Warning: [mod.json].binary is deprecated "
-                  "and will be removed in the future.");
+        log::warn(
+            "[mod.json].binary is deprecated "
+            "and will be removed in the future."
+        );
     }
 
     root.has("binary").asOneOf<value_t::string, value_t::object>();