[NFC] Small code cleanups in utility.

Fix a few small annoyances in Utility I ran into.

llvm-svn: 348996
This commit is contained in:
Jonas Devlieghere
2018-12-13 00:15:17 +00:00
parent 96929fdd42
commit 65e5e2781f
6 changed files with 9 additions and 11 deletions

View File

@@ -83,7 +83,7 @@ size_t StringList::GetMaxStringLength() const {
const char *StringList::GetStringAtIndex(size_t idx) const {
if (idx < m_strings.size())
return m_strings[idx].c_str();
return NULL;
return nullptr;
}
void StringList::Join(const char *separator, Stream &strm) {