Skip to content

Commit

Permalink
Change auto to explciit type in Log.hpp method declarations.
Browse files Browse the repository at this point in the history
This change is required to build Tools on Windows with MSVC19 for use
with ACEtk.
  • Loading branch information
lively-michael committed Nov 8, 2024
1 parent e0eb6b4 commit 0cd22f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tools/Log.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ namespace tools {
*/
class Log {

static auto initialize_logger() {
static std::shared_ptr<spdlog::logger> initialize_logger() {

auto instance = spdlog::stdout_color_st( "njoy" );
std::shared_ptr<spdlog::logger> instance = spdlog::stdout_color_st( "njoy" );
instance->set_pattern( "[%^%l%$] %v" );
#ifndef NDEBUG
instance->set_level( spdlog::level::debug );
#endif
return instance;
}

static auto& logger() {
static std::shared_ptr<spdlog::logger>& logger() {

static auto instance = initialize_logger();
static std::shared_ptr<spdlog::logger> instance = initialize_logger();
return instance;
}

Expand Down

0 comments on commit 0cd22f6

Please sign in to comment.