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 <Common/Log.h>
CGameTemplate::CGameTemplate()
: mFullyLoaded(false)
, mDirty(false)
{
}
CGameTemplate::CGameTemplate() = default;
void CGameTemplate::Serialize(IArchive& Arc)
{

View File

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