Skip to content

Commit

Permalink
Logger no longer const - logging functions aren't const anymore.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauriethefish committed Jan 8, 2021
1 parent cac6ff5 commit bb8635b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion template/include/main.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@

// Define these functions here so that we can easily read configuration and log information from other files
Configuration& getConfig();
const Logger& getLogger();
Logger& getLogger();
4 changes: 2 additions & 2 deletions template/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ Configuration& getConfig() {
}

// Returns a logger, useful for printing debug messages
const Logger& getLogger() {
static const Logger logger(modInfo);
Logger& getLogger() {
static Logger logger(modInfo);
return logger;
}

Expand Down

0 comments on commit bb8635b

Please sign in to comment.