mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-09 06:35:58 +00:00
CPropertyNameGenerator: Make use of in-class initializers
Same behavior, less code.
This commit is contained in:
parent
53881d1748
commit
1e46717b57
@ -5,13 +5,7 @@
|
||||
#include <Common/Hash/CCRC32.h>
|
||||
|
||||
/** Default constructor */
|
||||
CPropertyNameGenerator::CPropertyNameGenerator()
|
||||
: mWordListLoadStarted(false)
|
||||
, mWordListLoadFinished(false)
|
||||
, mIsRunning(false)
|
||||
, mFinishedRunning(false)
|
||||
{
|
||||
}
|
||||
CPropertyNameGenerator::CPropertyNameGenerator() = default;
|
||||
|
||||
void CPropertyNameGenerator::Warmup()
|
||||
{
|
||||
|
@ -63,16 +63,16 @@ struct SGeneratedPropertyName
|
||||
class CPropertyNameGenerator
|
||||
{
|
||||
/** Whether we have started loading the word list */
|
||||
bool mWordListLoadStarted;
|
||||
bool mWordListLoadStarted = false;
|
||||
|
||||
/** Whether the word list has been fully loaded */
|
||||
bool mWordListLoadFinished;
|
||||
bool mWordListLoadFinished = false;
|
||||
|
||||
/** Whether the generation process is running */
|
||||
bool mIsRunning;
|
||||
bool mIsRunning = false;
|
||||
|
||||
/** Whether the generation process finished running */
|
||||
bool mFinishedRunning;
|
||||
bool mFinishedRunning = false;
|
||||
|
||||
/** List of valid property types to check against */
|
||||
std::vector<TString> mTypeNames;
|
||||
|
Loading…
x
Reference in New Issue
Block a user