Skip to content

Commit

Permalink
AP_HAL: SPIDevice: prefer nullptr for pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasdemarchi committed Apr 19, 2017
1 parent c3d5aaa commit 915f10d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_HAL/SPIDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class SPIDeviceManager {
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; }
};

}

0 comments on commit 915f10d

Please sign in to comment.