Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpond committed Jan 23, 2023
1 parent c73981d commit af26b02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Logger {
void Log (std::wstring_view log) {
if (log_wstream.is_open ()) {
std::wstringstream message;
auto time = current_datetime();
const auto& time = current_datetime();
message << L"LOG | " << std::put_time(&time, L"%d-%b-%Y %H:%M:%S") << L" - " << log;
log_wstream << message.str() << std::endl;
}
Expand Down

0 comments on commit af26b02

Please sign in to comment.