mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-11 10:02:27 +01:00
Use pair instead of tuple in FileIndex.hpp, reduces compilation time
This commit is contained in:
@@ -23,7 +23,7 @@
|
|||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <tuple>
|
#include <utility>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
template<typename TItem>
|
template<typename TItem>
|
||||||
@@ -210,7 +210,7 @@ private:
|
|||||||
return allItems;
|
return allItems;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::tuple<bool, std::vector<TItem>> ReadIndexFile(int32_t language, const DirectoryStats& stats) const
|
std::pair<bool, std::vector<TItem>> ReadIndexFile(int32_t language, const DirectoryStats& stats) const
|
||||||
{
|
{
|
||||||
bool loadedItems = false;
|
bool loadedItems = false;
|
||||||
std::vector<TItem> items;
|
std::vector<TItem> items;
|
||||||
@@ -251,7 +251,7 @@ private:
|
|||||||
OpenRCT2::Console::Error::WriteLine("%s", e.what());
|
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<TItem>& items) const
|
void WriteIndexFile(int32_t language, const DirectoryStats& stats, const std::vector<TItem>& items) const
|
||||||
|
|||||||
Reference in New Issue
Block a user