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/cmStandardLevelResolver.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/cmStandardLevelResolver.cxx')
-rw-r--r-- | Source/cmStandardLevelResolver.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmStandardLevelResolver.cxx b/Source/cmStandardLevelResolver.cxx index 280e508..85411e6 100644 --- a/Source/cmStandardLevelResolver.cxx +++ b/Source/cmStandardLevelResolver.cxx @@ -184,7 +184,7 @@ struct StanardLevelComputer auto needed = this->HighestStandardNeeded(makefile, feature); cmProp existingStandard = currentLangStandardValue; - if (existingStandard == nullptr) { + if (!existingStandard) { cmProp defaultStandard = makefile->GetDefinition( cmStrCat("CMAKE_", this->Language, "_STANDARD_DEFAULT")); if (cmNonempty(defaultStandard)) { |