Skip to content

Commit 9264196

Browse files
facontidavideclaude
andcommitted
Fix clang-tidy readability-implicit-bool-conversion warning
Use explicit != nullptr comparison for pointer-to-bool conversion flagged by clang-tidy. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 1691c1d commit 9264196

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tree_node.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ AnyPtrLocked BT::TreeNode::getLockedPortContent(const std::string& key)
481481
{
482482
const auto bb_key = std::string(*remapped_key);
483483
auto result = _p->config.blackboard->getAnyLocked(bb_key);
484-
if(!result && _p->config.manifest)
484+
if(!result && _p->config.manifest != nullptr)
485485
{
486486
// Entry doesn't exist yet. Create it using the port's type info
487487
// from the manifest so that getLockedPortContent works even when

0 commit comments

Comments
 (0)