Remove unnecessary c_str() calls

Use the new IsOn(),IsOff() overloads.
This commit is contained in:
Vitaly Stakhovsky
2018-08-31 19:01:22 -04:00
committed by Brad King
parent 612975c665
commit 6f16be6a62
24 changed files with 40 additions and 43 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ bool cmSetSourceFilesPropertiesCommand::RunCommand(
propertyPairs.push_back(*j);
if (*j == "GENERATED") {
++j;
if (j != propend && cmSystemTools::IsOn(j->c_str())) {
if (j != propend && cmSystemTools::IsOn(*j)) {
generated = true;
}
} else {