summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-06-11 08:49:40 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-06-11 08:50:00 (GMT)
commite3b7eac5933a7ca913ce4b0adaf8e5370b04c997 (patch)
treebe5a2d7d9978aa1d6ff643e4a403a1e777e0deba
parentad304a2f7d2861b8127502f056ae4d8d07774c07 (diff)
downloadCMake-e3b7eac5933a7ca913ce4b0adaf8e5370b04c997.zip
CMake-e3b7eac5933a7ca913ce4b0adaf8e5370b04c997.tar.gz
CMake-e3b7eac5933a7ca913ce4b0adaf8e5370b04c997.tar.bz2
Style: Don't put an else after a return.
-rw-r--r--Source/cmGeneratorExpressionEvaluator.cxx3
1 files changed, 0 insertions, 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";
- }
}
};