mirror of https://github.com/ArduPilot/ardupilot
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:
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();
|
||||
|
|
Loading…
Reference in New Issue