From 2adbaffbca104339127747afe7621ed22467e450 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= <5415177+ZehMatt@users.noreply.github.com> Date: Mon, 21 Apr 2025 03:12:49 +0300 Subject: [PATCH] Use pair instead of tuple in FileIndex.hpp, reduces compilation time --- src/openrct2/core/FileIndex.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/openrct2/core/FileIndex.hpp b/src/openrct2/core/FileIndex.hpp index ac22a656a5..dec104d2a7 100644 --- a/src/openrct2/core/FileIndex.hpp +++ b/src/openrct2/core/FileIndex.hpp @@ -23,7 +23,7 @@ #include #include #include -#include +#include #include template @@ -210,7 +210,7 @@ private: return allItems; } - std::tuple> ReadIndexFile(int32_t language, const DirectoryStats& stats) const + std::pair> ReadIndexFile(int32_t language, const DirectoryStats& stats) const { bool loadedItems = false; std::vector items; @@ -251,7 +251,7 @@ private: OpenRCT2::Console::Error::WriteLine("%s", e.what()); } } - return std::make_tuple(loadedItems, std::move(items)); + return { loadedItems, std::move(items) }; } void WriteIndexFile(int32_t language, const DirectoryStats& stats, const std::vector& items) const