Added -Wzero-as-null-pointer-constant, replaced NULL --> UAVCAN_NULLPTR. All changes are automatic, no manual edits to the library code.

This commit is contained in:
Pavel Kirienko
2016-07-29 15:39:24 +03:00
parent b6fa34fed5
commit 38a241a90a
69 changed files with 306 additions and 274 deletions
+3 -3
View File
@@ -809,7 +809,7 @@ public:
*/
bool operator==(const char* ch) const
{
if (ch == NULL)
if (ch == UAVCAN_NULLPTR)
{
return false;
}
@@ -830,7 +830,7 @@ public:
StaticAssert<Base::IsStringLike>::check();
StaticAssert<IsDynamic>::check();
Base::clear();
if (ch == NULL)
if (ch == UAVCAN_NULLPTR)
{
handleFatalError("Array::operator=(const char*)");
}
@@ -849,7 +849,7 @@ public:
{
StaticAssert<Base::IsStringLike>::check();
StaticAssert<IsDynamic>::check();
if (ch == NULL)
if (ch == UAVCAN_NULLPTR)
{
handleFatalError("Array::operator+=(const char*)");
}