mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
AP_Menu: Do not compare delegate to NULL
Use the simpler "if (delegate_name)" since it allows simpler implementation in the class, i.e. the bool operator rather than having to compare to another object.
This commit is contained in:
committed by
Andrew Tridgell
parent
acdcdc35fa
commit
ff398dbf0c
@@ -181,7 +181,7 @@ Menu::run(void)
|
||||
for (;;) {
|
||||
|
||||
// run the pre-prompt function, if one is defined
|
||||
if (NULL != _ppfunc) {
|
||||
if (_ppfunc) {
|
||||
if (!_ppfunc())
|
||||
return;
|
||||
_display_prompt();
|
||||
|
||||
Reference in New Issue
Block a user