CGameExporter: Make use of in-class initializers

Same behavior, less code.
This commit is contained in:
Lioncash 2020-06-18 13:34:59 -04:00
parent 7177295cbb
commit 1c0e7a3b1d
2 changed files with 4 additions and 5 deletions

View File

@ -34,7 +34,6 @@ CGameExporter::CGameExporter(EDiscType DiscType, EGame Game, bool FrontEnd, EReg
, mBuildVersion(BuildVersion) , mBuildVersion(BuildVersion)
, mDiscType(DiscType) , mDiscType(DiscType)
, mFrontEnd(FrontEnd) , mFrontEnd(FrontEnd)
, mpProgress(nullptr)
{ {
ASSERT(mGame != EGame::Invalid); ASSERT(mGame != EGame::Invalid);
ASSERT(mRegion != ERegion::Unknown); ASSERT(mRegion != ERegion::Unknown);

View File

@ -39,15 +39,15 @@ class CGameExporter
TString mWorldsDirName; TString mWorldsDirName;
// Files // Files
nod::DiscBase *mpDisc; nod::DiscBase *mpDisc = nullptr;
EDiscType mDiscType; EDiscType mDiscType;
bool mFrontEnd; bool mFrontEnd;
// Resources // Resources
TStringList mPaks; TStringList mPaks;
std::map<CAssetID, bool> mAreaDuplicateMap; std::map<CAssetID, bool> mAreaDuplicateMap;
CAssetNameMap *mpNameMap; CAssetNameMap *mpNameMap = nullptr;
CGameInfo *mpGameInfo; CGameInfo *mpGameInfo = nullptr;
struct SResourceInstance struct SResourceInstance
{ {
@ -62,7 +62,7 @@ class CGameExporter
std::map<CAssetID, SResourceInstance> mResourceMap; std::map<CAssetID, SResourceInstance> mResourceMap;
// Progress // Progress
IProgressNotifier *mpProgress; IProgressNotifier *mpProgress = nullptr;
public: public:
enum EExportStep enum EExportStep