mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 03:43:34 +08:00
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:
@@ -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*)");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user