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/cmake.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/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index a08babe..225fa3c 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -1251,15 +1251,13 @@ void cmake::SetArgs(const std::vector<std::string>& args) this->UnprocessedPresetEnvironment = expandedPreset->Environment; if (!expandedPreset->InstallDir.empty() && - this->State->GetInitializedCacheValue("CMAKE_INSTALL_PREFIX") == - nullptr) { + !this->State->GetInitializedCacheValue("CMAKE_INSTALL_PREFIX")) { this->UnprocessedPresetVariables["CMAKE_INSTALL_PREFIX"] = { "PATH", expandedPreset->InstallDir }; } if (!expandedPreset->ToolchainFile.empty() && - this->State->GetInitializedCacheValue("CMAKE_TOOLCHAIN_FILE") == - nullptr) { + !this->State->GetInitializedCacheValue("CMAKE_TOOLCHAIN_FILE")) { this->UnprocessedPresetVariables["CMAKE_TOOLCHAIN_FILE"] = { "FILEPATH", expandedPreset->ToolchainFile }; |