From 757b0ff5dd08445ebac4f7ea50dd143a67f2e966 Mon Sep 17 00:00:00 2001 From: Daniel Pfeifer Date: Sat, 11 Jun 2016 09:49:00 +0200 Subject: Add missing braces around statements in header files --- Source/cmGlobalGeneratorFactory.h | 3 ++- Source/cmMakefile.h | 6 ++++-- Source/cmStandardIncludes.h | 12 ++++++++---- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/Source/cmGlobalGeneratorFactory.h b/Source/cmGlobalGeneratorFactory.h index 640497a..7d4fe2c 100644 --- a/Source/cmGlobalGeneratorFactory.h +++ b/Source/cmGlobalGeneratorFactory.h @@ -51,8 +51,9 @@ public: virtual cmGlobalGenerator* CreateGlobalGenerator(const std::string& name, cmake* cm) const { - if (name != T::GetActualName()) + if (name != T::GetActualName()) { return 0; + } return new T(cm); } diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index c665b1f..a078362 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -643,8 +643,9 @@ public: void AddInstallGenerator(cmInstallGenerator* g) { - if (g) + if (g) { this->InstallGenerators.push_back(g); + } } std::vector& GetInstallGenerators() { @@ -653,8 +654,9 @@ public: void AddTestGenerator(cmTestGenerator* g) { - if (g) + if (g) { this->TestGenerators.push_back(g); + } } const std::vector& GetTestGenerators() const { diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h index 6669e5c..d3bf301 100644 --- a/Source/cmStandardIncludes.h +++ b/Source/cmStandardIncludes.h @@ -75,17 +75,21 @@ struct cmDocumentationEntry cmDocumentationEntry() {} cmDocumentationEntry(const char* doc[2]) { - if (doc[0]) + if (doc[0]) { this->Name = doc[0]; - if (doc[1]) + } + if (doc[1]) { this->Brief = doc[1]; + } } cmDocumentationEntry(const char* n, const char* b) { - if (n) + if (n) { this->Name = n; - if (b) + } + if (b) { this->Brief = b; + } } }; -- cgit v0.12