CGameTemplate: Use in-class initializers where applicable
Same behavior, less code.
This commit is contained in:
parent
332be356de
commit
d9bb255518
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue