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)
, mDiscType(DiscType)
, mFrontEnd(FrontEnd)
, mpProgress(nullptr)
{
ASSERT(mGame != EGame::Invalid);
ASSERT(mRegion != ERegion::Unknown);

View File

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