util/IterableSplitString: use operator==(nullptr_t)

This commit is contained in:
Max Kellermann 2018-08-20 15:35:09 +02:00
parent fe6de14faf
commit 3fbb54e0a4

View File

@ -72,7 +72,7 @@ public:
:current(n), rest(n), separator(0) {} :current(n), rest(n), separator(0) {}
void Next() { void Next() {
if (rest.IsNull()) if (rest == nullptr)
current = nullptr; current = nullptr;
else { else {
const auto *i = rest.Find(separator); const auto *i = rest.Find(separator);