From b7aa3109bc98edf25a2dad1625d249b092f70e2b Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Mon, 24 Aug 2015 18:05:19 +0300 Subject: [PATCH] LPC11C24: Consistent use of nullptr --- libuavcan_drivers/lpc11c24/driver/src/can.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libuavcan_drivers/lpc11c24/driver/src/can.cpp b/libuavcan_drivers/lpc11c24/driver/src/can.cpp index 76e102c45e..d6bc0cf93e 100644 --- a/libuavcan_drivers/lpc11c24/driver/src/can.cpp +++ b/libuavcan_drivers/lpc11c24/driver/src/can.cpp @@ -179,11 +179,11 @@ int CanDriver::init(uavcan::uint32_t bitrate) canRxCallback, canTxCallback, canErrorCallback, - 0, - 0, - 0, - 0, - 0 + nullptr, + nullptr, + nullptr, + nullptr, + nullptr }; LPC_CCAN_API->config_calb(&ccan_callbacks); NVIC_EnableIRQ(CAN_IRQn); @@ -340,7 +340,7 @@ uavcan::uint16_t CanDriver::getNumFilters() const uavcan::ICanIface* CanDriver::getIface(uavcan::uint8_t iface_index) { - return (iface_index == 0) ? this : NULL; + return (iface_index == 0) ? this : nullptr; } uavcan::uint8_t CanDriver::getNumIfaces() const