CGameTemplate: Use in-class initializers where applicable

Same behavior, less code.
This commit is contained in:
Lioncash 2020-06-14 18:35:07 -04:00
parent 332be356de
commit d9bb255518
2 changed files with 4 additions and 8 deletions

View File

@ -3,11 +3,7 @@
#include "Core/Resource/Factory/CWorldLoader.h" #include "Core/Resource/Factory/CWorldLoader.h"
#include <Common/Log.h> #include <Common/Log.h>
CGameTemplate::CGameTemplate() CGameTemplate::CGameTemplate() = default;
: mFullyLoaded(false)
, mDirty(false)
{
}
void CGameTemplate::Serialize(IArchive& Arc) void CGameTemplate::Serialize(IArchive& Arc)
{ {

View File

@ -67,10 +67,10 @@ using SPropertyTemplatePath = TTemplatePath<IProperty>;
/** CGameTemplate - Per-game template data */ /** CGameTemplate - Per-game template data */
class CGameTemplate class CGameTemplate
{ {
EGame mGame; EGame mGame{};
TString mSourceFile; TString mSourceFile;
bool mFullyLoaded; bool mFullyLoaded = false;
bool mDirty; bool mDirty = false;
/** Template arrays */ /** Template arrays */
std::map<SObjId, SScriptTemplatePath> mScriptTemplates; std::map<SObjId, SScriptTemplatePath> mScriptTemplates;