mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-12 06:45:12 +00:00
General: Make use of in-class initializers
This commit is contained in:
@@ -1,10 +1,7 @@
|
||||
#include "CMaterialCooker.h"
|
||||
#include <algorithm>
|
||||
|
||||
CMaterialCooker::CMaterialCooker()
|
||||
: mpMat(nullptr)
|
||||
{
|
||||
}
|
||||
CMaterialCooker::CMaterialCooker() = default;
|
||||
|
||||
uint32 CMaterialCooker::ConvertFromVertexDescription(FVertexDescription VtxDesc)
|
||||
{
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
|
||||
class CMaterialCooker
|
||||
{
|
||||
CMaterialSet *mpSet;
|
||||
CMaterial *mpMat;
|
||||
EGame mVersion;
|
||||
CMaterialSet *mpSet = nullptr;
|
||||
CMaterial *mpMat = nullptr;
|
||||
EGame mVersion{};
|
||||
std::vector<uint32> mTextureIDs;
|
||||
std::vector<uint64> mMaterialHashes;
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ struct SNameKey
|
||||
};
|
||||
|
||||
SNameKey()
|
||||
: TypeHash(-1), ID(-1)
|
||||
: TypeHash(UINT32_MAX), ID(UINT32_MAX)
|
||||
{}
|
||||
|
||||
SNameKey(uint32 InTypeHash, uint32 InID)
|
||||
|
||||
Reference in New Issue
Block a user