From 14abdab314eabf0fc19050d33eed29cfdaa81398 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 14 Dec 2023 14:01:15 -0500 Subject: [PATCH] SysConf: std::move fs pointer in constructor Just gets rid of a trivial atomic reference count increment and decrement. Not a super heavyweight thing, but it is essentially "free" to get rid of. --- Source/Core/Core/SysConf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/SysConf.cpp b/Source/Core/Core/SysConf.cpp index e3b44142b0..d9efcaa345 100644 --- a/Source/Core/Core/SysConf.cpp +++ b/Source/Core/Core/SysConf.cpp @@ -36,7 +36,7 @@ static size_t GetNonArrayEntrySize(SysConf::Entry::Type type) return 0; } } -SysConf::SysConf(std::shared_ptr fs) : m_fs{fs} +SysConf::SysConf(std::shared_ptr fs) : m_fs{std::move(fs)} { Load(); }