AP_TempCalibration: use NEW_NOTHROW for new(std::nothrow)

This commit is contained in:
Andrew Tridgell 2024-05-27 11:24:15 +10:00
parent a2459c6e61
commit 93484ec81d
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ void AP_TempCalibration::setup_learning(void)
learn_count = 200; learn_count = 200;
learn_i = 0; learn_i = 0;
delete [] learn_values; delete [] learn_values;
learn_values = new float[learn_count]; learn_values = NEW_NOTHROW float[learn_count];
if (learn_values == nullptr) { if (learn_values == nullptr) {
return; return;
} }