From 08319e071e4b876a8f9c35edf8d73f3c145dff35 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Tue, 11 Jun 2013 09:52:08 +0200 Subject: Genex: Fix indentation in docs. --- Source/cmDocumentGeneratorExpressions.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/cmDocumentGeneratorExpressions.h b/Source/cmDocumentGeneratorExpressions.h index a8b3847..12ee9fa 100644 --- a/Source/cmDocumentGeneratorExpressions.h +++ b/Source/cmDocumentGeneratorExpressions.h @@ -44,9 +44,9 @@ "used.\n" \ " $ = '1' if the CMake-id of the C " \ "compiler matches comp, otherwise '0'.\n" \ - " $ = The CMake-id of the CXX compiler " \ + " $ = The CMake-id of the CXX compiler " \ "used.\n" \ - " $ = '1' if the CMake-id of the CXX " \ + " $ = '1' if the CMake-id of the CXX " \ "compiler matches comp, otherwise '0'.\n" \ " $ = main file (.exe, .so.1.2, .a)\n" \ " $ = file used to link (.a, .lib, .so)\n" \ -- cgit v0.12 From ad304a2f7d2861b8127502f056ae4d8d07774c07 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Tue, 11 Jun 2013 09:52:30 +0200 Subject: cmSystemTools: Fix typo in comment. --- Source/cmSystemTools.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h index f5be26b..ec53929 100644 --- a/Source/cmSystemTools.h +++ b/Source/cmSystemTools.h @@ -274,7 +274,7 @@ public: static bool GetRunCommandOutput() { return s_DisableRunCommandOutput; } /** - * Come constants for different file formats. + * Some constants for different file formats. */ enum FileFormat { NO_FILE_FORMAT = 0, -- cgit v0.12 From e3b7eac5933a7ca913ce4b0adaf8e5370b04c997 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Tue, 11 Jun 2013 10:49:40 +0200 Subject: Style: Don't put an else after a return. --- Source/cmGeneratorExpressionEvaluator.cxx | 3 --- 1 file changed, 3 deletions(-) diff --git a/Source/cmGeneratorExpressionEvaluator.cxx b/Source/cmGeneratorExpressionEvaluator.cxx index 28f749d..04ade4a 100644 --- a/Source/cmGeneratorExpressionEvaluator.cxx +++ b/Source/cmGeneratorExpressionEvaluator.cxx @@ -266,8 +266,6 @@ struct CompilerIdNode : public cmGeneratorExpressionNode { return compilerId ? compilerId : ""; } - else - { cmsys::RegularExpression compilerIdValidator; compilerIdValidator.compile("^[A-Za-z0-9_]*$"); if (!compilerIdValidator.find(parameters.begin()->c_str())) @@ -286,7 +284,6 @@ struct CompilerIdNode : public cmGeneratorExpressionNode return "1"; } return "0"; - } } }; -- cgit v0.12