CPropertyNameGenerator: Make use of in-class initializers

Same behavior, less code.
This commit is contained in:
Lioncash 2020-06-19 03:32:23 -04:00
parent 53881d1748
commit 1e46717b57
2 changed files with 5 additions and 11 deletions

View File

@ -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()
{

View File

@ -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;