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

View File

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