AP_HAL: SPIDevice: prefer nullptr for pointer

This commit is contained in:
Lucas De Marchi 2017-04-19 01:36:58 -07:00
parent c3d5aaa21c
commit 915f10dc8a

View File

@ -68,7 +68,7 @@ public:
virtual uint8_t get_count() { return 0; }
/* Get spi device name at @idx */
virtual const char *get_device_name(uint8_t idx) { return 0; }
virtual const char *get_device_name(uint8_t idx) { return nullptr; }
};
}