Skip to content

Commit ab027b5

Browse files
committed
back to naming things
1 parent d72e5a9 commit ab027b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/resource/ResourceLoader.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ bool ResourceLoader::RegisterResourceFactory(std::shared_ptr<ResourceFactory> fa
5454
mResourceTypes[typeName] = type;
5555
}
5656

57-
ResourceFactoryKey key = { format, type, version };
57+
ResourceFactoryKey key{ .resourceFormat = format, .resourceType = type, .resourceVersion = version };
5858
if (mFactories.contains(key)) {
5959
SPDLOG_ERROR("Failed to register resource factory: factory with key {}{}{} already exists", format, type,
6060
version);
@@ -66,7 +66,7 @@ bool ResourceLoader::RegisterResourceFactory(std::shared_ptr<ResourceFactory> fa
6666
}
6767

6868
std::shared_ptr<ResourceFactory> ResourceLoader::GetFactory(uint32_t format, uint32_t type, uint32_t version) {
69-
ResourceFactoryKey key = { format, type, version };
69+
ResourceFactoryKey key{ .resourceFormat = format, .resourceType = type, .resourceVersion = version };
7070
if (!mFactories.contains(key)) {
7171
SPDLOG_ERROR("Could not find resource factory with key {}{}{}", format, type, version);
7272
return nullptr;

0 commit comments

Comments
 (0)