mirror of https://github.com/ArduPilot/ardupilot
AP_AHRS: use NEW_NOTHROW for new(std::nothrow)
This commit is contained in:
parent
715e8346a6
commit
54017b820b
|
@ -167,7 +167,7 @@ AP_AHRS_View *AP_AHRS::create_view(enum Rotation rotation, float pitch_trim_deg)
|
||||||
// can only have one
|
// can only have one
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
_view = new AP_AHRS_View(*this, rotation, pitch_trim_deg);
|
_view = NEW_NOTHROW AP_AHRS_View(*this, rotation, pitch_trim_deg);
|
||||||
return _view;
|
return _view;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue