summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorJames Rowe <jroweboy@gmail.com>2018-08-14 07:27:22 +0200
committerGitHub <noreply@github.com>2018-08-14 07:27:22 +0200
commit882ce449868f57c05018522f3a9827d2477e991c (patch)
tree71559e02e6adcddb19af6b584cc5bf7374a50add /src/common
parentMerge pull request #1046 from ogniK5377/missing-channels (diff)
parentlogging/backend: Use const reference to refer to log filter (diff)
downloadyuzu-882ce449868f57c05018522f3a9827d2477e991c.tar
yuzu-882ce449868f57c05018522f3a9827d2477e991c.tar.gz
yuzu-882ce449868f57c05018522f3a9827d2477e991c.tar.bz2
yuzu-882ce449868f57c05018522f3a9827d2477e991c.tar.lz
yuzu-882ce449868f57c05018522f3a9827d2477e991c.tar.xz
yuzu-882ce449868f57c05018522f3a9827d2477e991c.tar.zst
yuzu-882ce449868f57c05018522f3a9827d2477e991c.zip
Diffstat (limited to 'src/common')
-rw-r--r--src/common/logging/backend.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp
index e80784c3c..1323f8d0f 100644
--- a/src/common/logging/backend.cpp
+++ b/src/common/logging/backend.cpp
@@ -302,13 +302,14 @@ Backend* GetBackend(std::string_view backend_name) {
void FmtLogMessageImpl(Class log_class, Level log_level, const char* filename,
unsigned int line_num, const char* function, const char* format,
const fmt::format_args& args) {
- auto filter = Impl::Instance().GetGlobalFilter();
+ auto& instance = Impl::Instance();
+ const auto& filter = instance.GetGlobalFilter();
if (!filter.CheckMessage(log_class, log_level))
return;
Entry entry =
CreateEntry(log_class, log_level, filename, line_num, function, fmt::vformat(format, args));
- Impl::Instance().PushEntry(std::move(entry));
+ instance.PushEntry(std::move(entry));
}
} // namespace Log