From b4c058389666dee703a1a3308e67b7faf90ffd5d Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Sat, 19 Dec 2015 22:36:32 -0800 Subject: [PATCH] ContainsKey: Compare to nullptr. This is a style change, not a functional change. --- src/networktables/NetworkTable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/networktables/NetworkTable.cpp b/src/networktables/NetworkTable.cpp index 13440d16a5..7eb377225f 100644 --- a/src/networktables/NetworkTable.cpp +++ b/src/networktables/NetworkTable.cpp @@ -207,7 +207,7 @@ bool NetworkTable::ContainsKey(StringRef key) const { llvm::SmallString<128> path(m_path); path += PATH_SEPARATOR_CHAR; path += key; - return nt::GetEntryValue(path) ? true : false; + return nt::GetEntryValue(path) != nullptr; } bool NetworkTable::ContainsSubTable(StringRef key) const {