From a612751cb081f2e8bd0b061e513776a3979d44c6 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 18 Jun 2020 06:19:06 -0400 Subject: [PATCH] CResTypeInfo: Make use of in-class initializers where applicable Same behavior, less code. --- src/Core/Resource/CResTypeInfo.cpp | 3 --- src/Core/Resource/CResTypeInfo.h | 6 +++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/Core/Resource/CResTypeInfo.cpp b/src/Core/Resource/CResTypeInfo.cpp index 67315289..cc4f1d0c 100644 --- a/src/Core/Resource/CResTypeInfo.cpp +++ b/src/Core/Resource/CResTypeInfo.cpp @@ -8,9 +8,6 @@ CResTypeInfo::CResTypeInfo(EResourceType Type, const TString& rkTypeName, const : mType(Type) , mTypeName(rkTypeName) , mRetroExtension(rkRetroExtension) - , mCanBeSerialized(false) - , mCanHaveDependencies(true) - , mCanBeCreated(false) { #if !PUBLIC_RELEASE ASSERT(smTypeMap.find(Type) == smTypeMap.end()); diff --git a/src/Core/Resource/CResTypeInfo.h b/src/Core/Resource/CResTypeInfo.h index 3583cdd4..85651246 100644 --- a/src/Core/Resource/CResTypeInfo.h +++ b/src/Core/Resource/CResTypeInfo.h @@ -21,9 +21,9 @@ class CResTypeInfo TString mTypeName; std::vector mCookedExtensions; TString mRetroExtension; // File extension in Retro's directory tree. We don't use it directly but it is needed for generating asset ID hashes - bool mCanBeSerialized; - bool mCanHaveDependencies; - bool mCanBeCreated; + bool mCanBeSerialized = false; + bool mCanHaveDependencies = true; + bool mCanBeCreated = false; static std::unordered_map> smTypeMap;