From e7a073e15f6ae4c823bfb802f053098e853fd6e0 Mon Sep 17 00:00:00 2001 From: BreadFish64 Date: Tue, 24 Dec 2019 14:19:18 -0600 Subject: [PATCH] logging/backend: Change type of filename from string to const char* This was suggested by degasus in https://github.com/yuzu-emu/yuzu/pull/3326 in order to avoid an unnecessary copy. --- src/common/logging/backend.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/logging/backend.h b/src/common/logging/backend.h index 57884e247a..a6714ffd09 100644 --- a/src/common/logging/backend.h +++ b/src/common/logging/backend.h @@ -24,7 +24,7 @@ struct Entry { std::chrono::microseconds timestamp; Class log_class; Level log_level; - std::string filename; + const char* filename; unsigned int line_num; std::string function; std::string message;