mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-20 04:24:36 +08:00
ccmake: Move Initialization of Fields Inline
Move initialization of simple fields in cmCursesMainForm inline.
This commit is contained in:
@@ -35,11 +35,6 @@ cmCursesMainForm::cmCursesMainForm(std::vector<std::string> args,
|
|||||||
: Args(std::move(args))
|
: Args(std::move(args))
|
||||||
, InitialWidth(initWidth)
|
, InitialWidth(initWidth)
|
||||||
{
|
{
|
||||||
this->HasNonStatusOutputs = false;
|
|
||||||
this->NumberOfPages = 0;
|
|
||||||
this->AdvancedMode = false;
|
|
||||||
this->NumberOfVisibleEntries = 0;
|
|
||||||
this->OkToGenerate = false;
|
|
||||||
this->HelpMessage.emplace_back(
|
this->HelpMessage.emplace_back(
|
||||||
"Welcome to ccmake, curses based user interface for CMake.");
|
"Welcome to ccmake, curses based user interface for CMake.");
|
||||||
this->HelpMessage.emplace_back();
|
this->HelpMessage.emplace_back();
|
||||||
@@ -54,7 +49,6 @@ cmCursesMainForm::cmCursesMainForm(std::vector<std::string> args,
|
|||||||
cmStrCat(cmSystemTools::GetProgramPath(this->Args[0]), "/cmake");
|
cmStrCat(cmSystemTools::GetProgramPath(this->Args[0]), "/cmake");
|
||||||
this->Args[0] = whereCMake;
|
this->Args[0] = whereCMake;
|
||||||
this->CMakeInstance->SetArgs(this->Args);
|
this->CMakeInstance->SetArgs(this->Args);
|
||||||
this->SearchMode = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
cmCursesMainForm::~cmCursesMainForm()
|
cmCursesMainForm::~cmCursesMainForm()
|
||||||
|
@@ -138,7 +138,7 @@ protected:
|
|||||||
// Output produced by the last pass
|
// Output produced by the last pass
|
||||||
std::vector<std::string> Outputs;
|
std::vector<std::string> Outputs;
|
||||||
// Did the last pass produced outputs of interest (errors, warnings, ...)
|
// Did the last pass produced outputs of interest (errors, warnings, ...)
|
||||||
bool HasNonStatusOutputs;
|
bool HasNonStatusOutputs = false;
|
||||||
// Last progress bar
|
// Last progress bar
|
||||||
std::string LastProgress;
|
std::string LastProgress;
|
||||||
|
|
||||||
@@ -155,17 +155,17 @@ protected:
|
|||||||
// Fields displayed. Includes labels, new entry markers, entries
|
// Fields displayed. Includes labels, new entry markers, entries
|
||||||
std::vector<FIELD*> Fields;
|
std::vector<FIELD*> Fields;
|
||||||
// Number of entries shown (depends on mode -normal or advanced-)
|
// Number of entries shown (depends on mode -normal or advanced-)
|
||||||
size_t NumberOfVisibleEntries;
|
size_t NumberOfVisibleEntries = 0;
|
||||||
bool AdvancedMode;
|
bool AdvancedMode = false;
|
||||||
// Did the iteration converge (no new entries) ?
|
// Did the iteration converge (no new entries) ?
|
||||||
bool OkToGenerate;
|
bool OkToGenerate = false;
|
||||||
// Number of pages displayed
|
// Number of pages displayed
|
||||||
int NumberOfPages;
|
int NumberOfPages = 0;
|
||||||
|
|
||||||
int InitialWidth;
|
int InitialWidth;
|
||||||
std::unique_ptr<cmake> CMakeInstance;
|
std::unique_ptr<cmake> CMakeInstance;
|
||||||
|
|
||||||
std::string SearchString;
|
std::string SearchString;
|
||||||
std::string OldSearchString;
|
std::string OldSearchString;
|
||||||
bool SearchMode;
|
bool SearchMode = false;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user