CGameExporter: Make use of in-class initializers
Same behavior, less code.
This commit is contained in:
parent
7177295cbb
commit
1c0e7a3b1d
|
@ -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);
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue