diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2021-05-10 15:00:00 (GMT) |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2021-05-10 15:44:53 (GMT) |
commit | ce97b7909bdd4be78c4be2e2326c5ae3e27a21f0 (patch) | |
tree | 32bc3a55e37750af01a03e90abbd78c9e1b948ff /Source/cmXCodeScheme.cxx | |
parent | 2ee55f9718264d716eeabc9d61ede6e434443fd1 (diff) | |
download | CMake-ce97b7909bdd4be78c4be2e2326c5ae3e27a21f0.zip CMake-ce97b7909bdd4be78c4be2e2326c5ae3e27a21f0.tar.gz CMake-ce97b7909bdd4be78c4be2e2326c5ae3e27a21f0.tar.bz2 |
Source: Remove unnecessary comparisons to nullptr
Diffstat (limited to 'Source/cmXCodeScheme.cxx')
-rw-r--r-- | Source/cmXCodeScheme.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmXCodeScheme.cxx b/Source/cmXCodeScheme.cxx index 55e941d..e4329af 100644 --- a/Source/cmXCodeScheme.cxx +++ b/Source/cmXCodeScheme.cxx @@ -324,7 +324,7 @@ bool cmXCodeScheme::WriteLaunchActionBooleanAttribute( bool defaultValue) { cmProp property = Target->GetTarget()->GetProperty(varName); - bool isOn = (property == nullptr && defaultValue) || cmIsOn(property); + bool isOn = (!property && defaultValue) || cmIsOn(property); if (isOn) { xout.Attribute(attrName.c_str(), "YES"); |