General: Make use of in-class initializers
This commit is contained in:
parent
127712f459
commit
8dd4fb24d9
|
@ -12,7 +12,7 @@
|
||||||
// they serve similar purposes, no real reason for them to be different classes
|
// they serve similar purposes, no real reason for them to be different classes
|
||||||
class CGameInfo
|
class CGameInfo
|
||||||
{
|
{
|
||||||
EGame mGame;
|
EGame mGame{EGame::Invalid};
|
||||||
|
|
||||||
// List of known builds of each game
|
// List of known builds of each game
|
||||||
struct SBuildInfo
|
struct SBuildInfo
|
||||||
|
@ -34,9 +34,7 @@ class CGameInfo
|
||||||
std::map<CAssetID, TString> mAreaNameMap;
|
std::map<CAssetID, TString> mAreaNameMap;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CGameInfo()
|
CGameInfo() = default;
|
||||||
: mGame(EGame::Invalid)
|
|
||||||
{}
|
|
||||||
|
|
||||||
bool LoadGameInfo(EGame Game);
|
bool LoadGameInfo(EGame Game);
|
||||||
bool LoadGameInfo(TString Path);
|
bool LoadGameInfo(TString Path);
|
||||||
|
|
|
@ -1,10 +1,7 @@
|
||||||
#include "CMaterialCooker.h"
|
#include "CMaterialCooker.h"
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
||||||
CMaterialCooker::CMaterialCooker()
|
CMaterialCooker::CMaterialCooker() = default;
|
||||||
: mpMat(nullptr)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
uint32 CMaterialCooker::ConvertFromVertexDescription(FVertexDescription VtxDesc)
|
uint32 CMaterialCooker::ConvertFromVertexDescription(FVertexDescription VtxDesc)
|
||||||
{
|
{
|
||||||
|
|
|
@ -7,9 +7,9 @@
|
||||||
|
|
||||||
class CMaterialCooker
|
class CMaterialCooker
|
||||||
{
|
{
|
||||||
CMaterialSet *mpSet;
|
CMaterialSet *mpSet = nullptr;
|
||||||
CMaterial *mpMat;
|
CMaterial *mpMat = nullptr;
|
||||||
EGame mVersion;
|
EGame mVersion{};
|
||||||
std::vector<uint32> mTextureIDs;
|
std::vector<uint32> mTextureIDs;
|
||||||
std::vector<uint64> mMaterialHashes;
|
std::vector<uint64> mMaterialHashes;
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@ struct SNameKey
|
||||||
};
|
};
|
||||||
|
|
||||||
SNameKey()
|
SNameKey()
|
||||||
: TypeHash(-1), ID(-1)
|
: TypeHash(UINT32_MAX), ID(UINT32_MAX)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
SNameKey(uint32 InTypeHash, uint32 InID)
|
SNameKey(uint32 InTypeHash, uint32 InID)
|
||||||
|
|
Loading…
Reference in New Issue