From a5af1161c9a58616739ddaedcb900bcd7cc995f8 Mon Sep 17 00:00:00 2001 From: David Marcec Date: Mon, 3 Aug 2020 20:44:04 +1000 Subject: Place in anonymous namespace --- src/core/loader/loader.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core') diff --git a/src/core/loader/loader.cpp b/src/core/loader/loader.cpp index c4905550a..b8f8f1448 100644 --- a/src/core/loader/loader.cpp +++ b/src/core/loader/loader.cpp @@ -23,6 +23,8 @@ namespace Loader { +namespace { + template T> std::optional IdentifyFileLoader(FileSys::VirtualFile file) { const auto file_type = T::IdentifyType(file); @@ -32,6 +34,8 @@ std::optional IdentifyFileLoader(FileSys::VirtualFile file) { return std::nullopt; } +} // namespace + FileType IdentifyFile(FileSys::VirtualFile file) { if (const auto romdir_type = IdentifyFileLoader(file)) { return *romdir_type; -- cgit v1.2.3