diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2020-07-13 21:00:00 -0400 |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2020-07-14 08:22:24 -0400 |
commit | 715691124240b696c8be1d7cd6ce6dbb09381c67 (patch) | |
tree | 85829a543a5d041e7329ae2e447b3d261ea640b8 /Source/cmXCodeScheme.cxx | |
parent | 2da778664d3e99ada4e67a5a1b9d377f92a9f75f (diff) | |
download | cmake-715691124240b696c8be1d7cd6ce6dbb09381c67.tar.gz |
cmIsOn: add overload accepting const std::string*
Diffstat (limited to 'Source/cmXCodeScheme.cxx')
-rw-r--r-- | Source/cmXCodeScheme.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmXCodeScheme.cxx b/Source/cmXCodeScheme.cxx index 0e3cf08d9a..55e941d947 100644 --- a/Source/cmXCodeScheme.cxx +++ b/Source/cmXCodeScheme.cxx @@ -324,8 +324,7 @@ bool cmXCodeScheme::WriteLaunchActionBooleanAttribute( bool defaultValue) { cmProp property = Target->GetTarget()->GetProperty(varName); - bool isOn = - (property == nullptr && defaultValue) || (property && cmIsOn(*property)); + bool isOn = (property == nullptr && defaultValue) || cmIsOn(property); if (isOn) { xout.Attribute(attrName.c_str(), "YES"); |