mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-09 14:46:05 +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>
|
#include <Common/Hash/CCRC32.h>
|
||||||
|
|
||||||
/** Default constructor */
|
/** Default constructor */
|
||||||
CPropertyNameGenerator::CPropertyNameGenerator()
|
CPropertyNameGenerator::CPropertyNameGenerator() = default;
|
||||||
: mWordListLoadStarted(false)
|
|
||||||
, mWordListLoadFinished(false)
|
|
||||||
, mIsRunning(false)
|
|
||||||
, mFinishedRunning(false)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void CPropertyNameGenerator::Warmup()
|
void CPropertyNameGenerator::Warmup()
|
||||||
{
|
{
|
||||||
|
@ -63,16 +63,16 @@ struct SGeneratedPropertyName
|
|||||||
class CPropertyNameGenerator
|
class CPropertyNameGenerator
|
||||||
{
|
{
|
||||||
/** Whether we have started loading the word list */
|
/** Whether we have started loading the word list */
|
||||||
bool mWordListLoadStarted;
|
bool mWordListLoadStarted = false;
|
||||||
|
|
||||||
/** Whether the word list has been fully loaded */
|
/** Whether the word list has been fully loaded */
|
||||||
bool mWordListLoadFinished;
|
bool mWordListLoadFinished = false;
|
||||||
|
|
||||||
/** Whether the generation process is running */
|
/** Whether the generation process is running */
|
||||||
bool mIsRunning;
|
bool mIsRunning = false;
|
||||||
|
|
||||||
/** Whether the generation process finished running */
|
/** Whether the generation process finished running */
|
||||||
bool mFinishedRunning;
|
bool mFinishedRunning = false;
|
||||||
|
|
||||||
/** List of valid property types to check against */
|
/** List of valid property types to check against */
|
||||||
std::vector<TString> mTypeNames;
|
std::vector<TString> mTypeNames;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user