Replace all uses of NULL with nullptr
This was an automatic change made by clang-tidy. It moves all uses of
NULL to nullptr, which are equivalent, but nullptr is prefered.
Tested: Code compiles.
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Change-Id: I9526599b222693c9723a69934b599c7a5b5d1fbf
diff --git a/http/query_string.h b/http/query_string.h
index 959eb68..10753ac 100644
--- a/http/query_string.h
+++ b/http/query_string.h
@@ -138,7 +138,7 @@
for (i = 0; i < qs_kv_size; i++)
{
- qs_kv[i] = NULL;
+ qs_kv[i] = nullptr;
}
// find the beginning of the k/v substrings or the fragment
@@ -255,7 +255,7 @@
}
#endif // _qsSORTING
- return NULL;
+ return nullptr;
}
inline char* qsScanvalue(const char* key, const char* qs, char* val,
@@ -265,7 +265,7 @@
const char* tmp;
// find the beginning of the k/v substrings
- if ((tmp = strchr(qs, '?')) != NULL)
+ if ((tmp = strchr(qs, '?')) != nullptr)
{
qs = tmp + 1;
}
@@ -282,7 +282,7 @@
if (qs[0] == '\0')
{
- return NULL;
+ return nullptr;
}
qs += strcspn(qs, "=&#");