summaryrefslogtreecommitdiffstats
path: root/Source/cmGraphVizWriter.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@users.noreply.gitlab.com>2024-08-27 13:30:00 (GMT)
committerVitaly Stakhovsky <vvs31415@users.noreply.gitlab.com>2024-08-27 14:56:38 (GMT)
commit58da4aa47df7d12c54c2d3f26722eca5dd8ee10f (patch)
treec5d9bf243c3ec1526fd9e171f28d581a6af57e70 /Source/cmGraphVizWriter.cxx
parent72607d3402b91c3a9f4579c86175e4ca1ce6aa4e (diff)
downloadCMake-58da4aa47df7d12c54c2d3f26722eca5dd8ee10f.zip
CMake-58da4aa47df7d12c54c2d3f26722eca5dd8ee10f.tar.gz
CMake-58da4aa47df7d12c54c2d3f26722eca5dd8ee10f.tar.bz2
Source: Avoid comparing pointers to nullptr
Diffstat (limited to 'Source/cmGraphVizWriter.cxx')
-rw-r--r--Source/cmGraphVizWriter.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGraphVizWriter.cxx b/Source/cmGraphVizWriter.cxx
index 6c3afef..55cc815 100644
--- a/Source/cmGraphVizWriter.cxx
+++ b/Source/cmGraphVizWriter.cxx
@@ -46,7 +46,7 @@ char const* const GRAPHVIZ_NODE_SHAPE_UTILITY = "box";
const char* getShapeForTarget(const cmLinkItem& item)
{
- if (item.Target == nullptr) {
+ if (!item.Target) {
return GRAPHVIZ_NODE_SHAPE_LIBRARY_UNKNOWN;
}
@@ -473,7 +473,7 @@ bool cmGraphVizWriter::ItemExcluded(cmLinkItem const& item)
return true;
}
- if (item.Target == nullptr) {
+ if (!item.Target) {
return !this->GenerateForExternals;
}