code style fixes

This commit is contained in:
HJfod 2022-10-08 14:00:23 +03:00
parent e0676a3c16
commit 959e1d08c3
2 changed files with 8 additions and 6 deletions
loader/src/load

View file

@ -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();
}

View file

@ -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>();