Add missing braces around statements in header files
This commit is contained in:
parent
a16bf141bc
commit
757b0ff5dd
@ -51,8 +51,9 @@ public:
|
|||||||
virtual cmGlobalGenerator* CreateGlobalGenerator(const std::string& name,
|
virtual cmGlobalGenerator* CreateGlobalGenerator(const std::string& name,
|
||||||
cmake* cm) const
|
cmake* cm) const
|
||||||
{
|
{
|
||||||
if (name != T::GetActualName())
|
if (name != T::GetActualName()) {
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
return new T(cm);
|
return new T(cm);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -643,9 +643,10 @@ public:
|
|||||||
|
|
||||||
void AddInstallGenerator(cmInstallGenerator* g)
|
void AddInstallGenerator(cmInstallGenerator* g)
|
||||||
{
|
{
|
||||||
if (g)
|
if (g) {
|
||||||
this->InstallGenerators.push_back(g);
|
this->InstallGenerators.push_back(g);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
std::vector<cmInstallGenerator*>& GetInstallGenerators()
|
std::vector<cmInstallGenerator*>& GetInstallGenerators()
|
||||||
{
|
{
|
||||||
return this->InstallGenerators;
|
return this->InstallGenerators;
|
||||||
@ -653,9 +654,10 @@ public:
|
|||||||
|
|
||||||
void AddTestGenerator(cmTestGenerator* g)
|
void AddTestGenerator(cmTestGenerator* g)
|
||||||
{
|
{
|
||||||
if (g)
|
if (g) {
|
||||||
this->TestGenerators.push_back(g);
|
this->TestGenerators.push_back(g);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
const std::vector<cmTestGenerator*>& GetTestGenerators() const
|
const std::vector<cmTestGenerator*>& GetTestGenerators() const
|
||||||
{
|
{
|
||||||
return this->TestGenerators;
|
return this->TestGenerators;
|
||||||
|
@ -75,18 +75,22 @@ struct cmDocumentationEntry
|
|||||||
cmDocumentationEntry() {}
|
cmDocumentationEntry() {}
|
||||||
cmDocumentationEntry(const char* doc[2])
|
cmDocumentationEntry(const char* doc[2])
|
||||||
{
|
{
|
||||||
if (doc[0])
|
if (doc[0]) {
|
||||||
this->Name = doc[0];
|
this->Name = doc[0];
|
||||||
if (doc[1])
|
}
|
||||||
|
if (doc[1]) {
|
||||||
this->Brief = doc[1];
|
this->Brief = doc[1];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
cmDocumentationEntry(const char* n, const char* b)
|
cmDocumentationEntry(const char* n, const char* b)
|
||||||
{
|
{
|
||||||
if (n)
|
if (n) {
|
||||||
this->Name = n;
|
this->Name = n;
|
||||||
if (b)
|
}
|
||||||
|
if (b) {
|
||||||
this->Brief = b;
|
this->Brief = b;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Data structure to represent a single command line. */
|
/** Data structure to represent a single command line. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user