From 2ef467be7dcbc678776a1da874dba7b4438e3286 Mon Sep 17 00:00:00 2001 From: gabime Date: Mon, 6 Jan 2025 08:09:01 +0200 Subject: [PATCH] Pass source loc by ref --- include/spdlog/logger.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/logger.h b/include/spdlog/logger.h index 05675035..efb407c3 100644 --- a/include/spdlog/logger.h +++ b/include/spdlog/logger.h @@ -170,7 +170,7 @@ private: // common implementation for after templated public api has been resolved to format string and // args template - void log_with_format_(source_loc loc, const level lvl, const format_string_t &format_string, Args &&...args) { + void log_with_format_(const source_loc &loc, const level lvl, const format_string_t &format_string, Args &&...args) { assert(should_log(lvl)); try { memory_buf_t buf;