From d8639733a42149ca1402dcae427f2142ab0cf037 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Tue, 27 Jan 2015 23:52:50 +0100 Subject: [PATCH] cmSystemTools: Remove unnecessary comparison. We already know the string is uppercase. --- Source/cmSystemTools.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index bb007ef88..d3ab36b84 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -376,7 +376,7 @@ bool cmSystemTools::IsInternallyOn(const char* val) { *c = static_cast(toupper(*c)); } - return (v == "I_ON" || v == "i_on"); + return v == "I_ON"; } bool cmSystemTools::IsOn(const char* val)