ContainsKey: Compare to nullptr.

This is a style change, not a functional change.
This commit is contained in:
Peter Johnson
2015-12-19 22:36:32 -08:00
parent 88b985be5d
commit b4c0583896

View File

@@ -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 {