From cead1ee2640e0b23866cb8cf671e3c969a49c957 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 27 May 2024 11:24:13 +1000 Subject: [PATCH] AP_ONVIF: use NEW_NOTHROW for new(std::nothrow) --- libraries/AP_ONVIF/AP_ONVIF.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/AP_ONVIF/AP_ONVIF.cpp b/libraries/AP_ONVIF/AP_ONVIF.cpp index 6a0fae5672..d5c43e9278 100644 --- a/libraries/AP_ONVIF/AP_ONVIF.cpp +++ b/libraries/AP_ONVIF/AP_ONVIF.cpp @@ -63,13 +63,13 @@ bool AP_ONVIF::start(const char *user, const char *pass, const char *hostname) soap->connect_timeout = soap->recv_timeout = soap->send_timeout = 30; // 30 sec if (proxy_device == nullptr) { - proxy_device = new DeviceBindingProxy(soap); + proxy_device = NEW_NOTHROW DeviceBindingProxy(soap); } if (proxy_media == nullptr) { - proxy_media = new MediaBindingProxy(soap); + proxy_media = NEW_NOTHROW MediaBindingProxy(soap); } if (proxy_ptz == nullptr) { - proxy_ptz = new PTZBindingProxy(soap); + proxy_ptz = NEW_NOTHROW PTZBindingProxy(soap); } if (proxy_device == nullptr ||