1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-06-19 15:41:32 +00:00

fixed naming convention issue

This commit is contained in:
florent.teppe 2022-09-06 14:27:53 +02:00
parent e23d9c11a8
commit 564c5d6690

View file

@ -148,7 +148,7 @@ namespace MWWorld
IDMap mStaticIds; IDMap mStaticIds;
template<typename T> template<typename T>
static int AssignStoreToIndex(ESMStore& stores, Store<T>& store) static int assignStoreToIndex(ESMStore& stores, Store<T>& store)
{ {
const std::size_t storeIndex = ESMStore::getTypeIndex<T>(); const std::size_t storeIndex = ESMStore::getTypeIndex<T>();
if (stores.mStores.size() <= storeIndex) if (stores.mStores.size() <= storeIndex)
@ -169,7 +169,7 @@ namespace MWWorld
return 0; return 0;
} }
void SetupAfterStoresCreation(ESMStore& store) void setupAfterStoresCreation(ESMStore& store)
{ {
for (const auto& recordStorePair : mRecNameToStore) for (const auto& recordStorePair : mRecNameToStore)
{ {
@ -201,9 +201,9 @@ namespace MWWorld
ESMStore::ESMStore() ESMStore::ESMStore()
{ {
mStoreImp = std::make_unique<ESMStoreImp>(); mStoreImp = std::make_unique<ESMStoreImp>();
std::apply([this](auto& ...x) {(ESMStoreImp::AssignStoreToIndex(*this, x), ...); }, mStoreImp->mStores); std::apply([this](auto& ...x) {(ESMStoreImp::assignStoreToIndex(*this, x), ...); }, mStoreImp->mStores);
mDynamicCount = 0; mDynamicCount = 0;
mStoreImp->SetupAfterStoresCreation(*this); mStoreImp->setupAfterStoresCreation(*this);
getWritable<ESM::Pathgrid>().setCells(getWritable<ESM::Cell>()); getWritable<ESM::Pathgrid>().setCells(getWritable<ESM::Cell>());
} }