diff --git a/lib/BTCQuotePlugin/src/BTCQuotePlugin.h b/lib/BTCQuotePlugin/src/BTCQuotePlugin.h index 0a90b975..62649d13 100644 --- a/lib/BTCQuotePlugin/src/BTCQuotePlugin.h +++ b/lib/BTCQuotePlugin/src/BTCQuotePlugin.h @@ -122,7 +122,7 @@ class BTCQuotePlugin : public Plugin */ static IPluginMaintenance* create(const String& name, uint16_t uid) { - return new BTCQuotePlugin(name, uid); + return new(std::nothrow) BTCQuotePlugin(name, uid); } /** diff --git a/lib/BatteryPlugin/src/BatteryPlugin.h b/lib/BatteryPlugin/src/BatteryPlugin.h index c5f8ab06..767522d0 100644 --- a/lib/BatteryPlugin/src/BatteryPlugin.h +++ b/lib/BatteryPlugin/src/BatteryPlugin.h @@ -115,7 +115,7 @@ class BatteryPlugin : public Plugin */ static IPluginMaintenance* create(const String& name, uint16_t uid) { - return new BatteryPlugin(name, uid); + return new(std::nothrow) BatteryPlugin(name, uid); } /** diff --git a/lib/CountdownPlugin/src/CountdownPlugin.h b/lib/CountdownPlugin/src/CountdownPlugin.h index acb15062..822a1a66 100644 --- a/lib/CountdownPlugin/src/CountdownPlugin.h +++ b/lib/CountdownPlugin/src/CountdownPlugin.h @@ -222,7 +222,7 @@ class CountdownPlugin : public Plugin, private PluginConfigFsHandler */ static IPluginMaintenance* create(const String& name, uint16_t uid) { - return new CountdownPlugin(name, uid); + return new(std::nothrow) CountdownPlugin(name, uid); } /** diff --git a/lib/DDPPlugin/src/DDPPlugin.h b/lib/DDPPlugin/src/DDPPlugin.h index ee3fed63..fdae0093 100644 --- a/lib/DDPPlugin/src/DDPPlugin.h +++ b/lib/DDPPlugin/src/DDPPlugin.h @@ -98,7 +98,7 @@ class DDPPlugin : public Plugin */ static IPluginMaintenance* create(const String& name, uint16_t uid) { - return new DDPPlugin(name, uid); + return new(std::nothrow) DDPPlugin(name, uid); } /** diff --git a/lib/DateTimePlugin/src/DateTimePlugin.h b/lib/DateTimePlugin/src/DateTimePlugin.h index 483a6d8f..580078d3 100644 --- a/lib/DateTimePlugin/src/DateTimePlugin.h +++ b/lib/DateTimePlugin/src/DateTimePlugin.h @@ -121,7 +121,7 @@ class DateTimePlugin : public Plugin, private PluginConfigFsHandler */ static IPluginMaintenance* create(const String& name, uint16_t uid) { - return new DateTimePlugin(name, uid); + return new(std::nothrow) DateTimePlugin(name, uid); } /** diff --git a/lib/GameOfLifePlugin/src/GameOfLifePlugin.h b/lib/GameOfLifePlugin/src/GameOfLifePlugin.h index e333e888..aace6d11 100644 --- a/lib/GameOfLifePlugin/src/GameOfLifePlugin.h +++ b/lib/GameOfLifePlugin/src/GameOfLifePlugin.h @@ -119,7 +119,7 @@ class GameOfLifePlugin : public Plugin */ static IPluginMaintenance* create(const String& name, uint16_t uid) { - return new GameOfLifePlugin(name, uid); + return new(std::nothrow)GameOfLifePlugin(name, uid); } /** diff --git a/lib/GrabViaMqttPlugin/src/GrabViaMqttPlugin.h b/lib/GrabViaMqttPlugin/src/GrabViaMqttPlugin.h index c6e920ca..8e9fbdb3 100644 --- a/lib/GrabViaMqttPlugin/src/GrabViaMqttPlugin.h +++ b/lib/GrabViaMqttPlugin/src/GrabViaMqttPlugin.h @@ -116,7 +116,7 @@ class GrabViaMqttPlugin : public Plugin, private PluginConfigFsHandler */ static IPluginMaintenance* create(const String& name, uint16_t uid) { - return new GrabViaMqttPlugin(name, uid); + return new(std::nothrow)GrabViaMqttPlugin(name, uid); } /** diff --git a/lib/GrabViaRestPlugin/src/GrabViaRestPlugin.h b/lib/GrabViaRestPlugin/src/GrabViaRestPlugin.h index bf253b92..3ebb70d4 100644 --- a/lib/GrabViaRestPlugin/src/GrabViaRestPlugin.h +++ b/lib/GrabViaRestPlugin/src/GrabViaRestPlugin.h @@ -134,7 +134,7 @@ class GrabViaRestPlugin : public Plugin, private PluginConfigFsHandler */ static IPluginMaintenance* create(const String& name, uint16_t uid) { - return new GrabViaRestPlugin(name, uid); + return new(std::nothrow)GrabViaRestPlugin(name, uid); } /** diff --git a/lib/GruenbeckPlugin/src/GruenbeckPlugin.h b/lib/GruenbeckPlugin/src/GruenbeckPlugin.h index 669d2c36..a4c912bf 100644 --- a/lib/GruenbeckPlugin/src/GruenbeckPlugin.h +++ b/lib/GruenbeckPlugin/src/GruenbeckPlugin.h @@ -130,7 +130,7 @@ class GruenbeckPlugin : public Plugin, private PluginConfigFsHandler */ static IPluginMaintenance* create(const String& name, uint16_t uid) { - return new GruenbeckPlugin(name, uid); + return new(std::nothrow)GruenbeckPlugin(name, uid); } /** diff --git a/lib/IconTextLampPlugin/src/IconTextLampPlugin.h b/lib/IconTextLampPlugin/src/IconTextLampPlugin.h index e11037e2..b16d552d 100644 --- a/lib/IconTextLampPlugin/src/IconTextLampPlugin.h +++ b/lib/IconTextLampPlugin/src/IconTextLampPlugin.h @@ -112,7 +112,7 @@ class IconTextLampPlugin : public Plugin */ static IPluginMaintenance* create(const String& name, uint16_t uid) { - return new IconTextLampPlugin(name, uid); + return new(std::nothrow)IconTextLampPlugin(name, uid); } /** diff --git a/lib/IconTextPlugin/src/IconTextPlugin.h b/lib/IconTextPlugin/src/IconTextPlugin.h index e4390ced..e0e583ed 100644 --- a/lib/IconTextPlugin/src/IconTextPlugin.h +++ b/lib/IconTextPlugin/src/IconTextPlugin.h @@ -108,7 +108,7 @@ class IconTextPlugin : public Plugin */ static IPluginMaintenance* create(const String& name, uint16_t uid) { - return new IconTextPlugin(name, uid); + return new(std::nothrow)IconTextPlugin(name, uid); } /** diff --git a/lib/JustTextPlugin/src/JustTextPlugin.h b/lib/JustTextPlugin/src/JustTextPlugin.h index a48b3cb1..39736710 100644 --- a/lib/JustTextPlugin/src/JustTextPlugin.h +++ b/lib/JustTextPlugin/src/JustTextPlugin.h @@ -99,7 +99,7 @@ class JustTextPlugin : public Plugin */ static IPluginMaintenance* create(const String& name, uint16_t uid) { - return new JustTextPlugin(name, uid); + return new(std::nothrow)JustTextPlugin(name, uid); } /** diff --git a/lib/MatrixPlugin/src/MatrixPlugin.h b/lib/MatrixPlugin/src/MatrixPlugin.h index d81cda7b..bf0dc4bd 100644 --- a/lib/MatrixPlugin/src/MatrixPlugin.h +++ b/lib/MatrixPlugin/src/MatrixPlugin.h @@ -91,7 +91,7 @@ class MatrixPlugin : public Plugin */ static IPluginMaintenance* create(const String& name, uint16_t uid) { - return new MatrixPlugin(name, uid); + return new(std::nothrow)MatrixPlugin(name, uid); } /** diff --git a/lib/OpenWeatherPlugin/src/OpenWeatherPlugin.cpp b/lib/OpenWeatherPlugin/src/OpenWeatherPlugin.cpp index f961eea5..c8385631 100644 --- a/lib/OpenWeatherPlugin/src/OpenWeatherPlugin.cpp +++ b/lib/OpenWeatherPlugin/src/OpenWeatherPlugin.cpp @@ -499,15 +499,15 @@ void OpenWeatherPlugin::createOpenWeatherSource(OpenWeatherSource id) switch(id) { case OPENWEATHER_SOURCE_CURRENT: - m_source = new (std::nothrow) OpenWeatherCurrent(); + m_source = new(std::nothrow) OpenWeatherCurrent(); break; case OPENWEATHER_SOURCE_ONE_CALL_25: - m_source = new (std::nothrow) OpenWeatherOneCall("2.5"); + m_source = new(std::nothrow) OpenWeatherOneCall("2.5"); break; case OPENWEATHER_SOURCE_ONE_CALL_30: - m_source = new (std::nothrow) OpenWeatherOneCall("3.0"); + m_source = new(std::nothrow) OpenWeatherOneCall("3.0"); break; default: diff --git a/lib/OpenWeatherPlugin/src/OpenWeatherPlugin.h b/lib/OpenWeatherPlugin/src/OpenWeatherPlugin.h index 924ec593..345aba42 100644 --- a/lib/OpenWeatherPlugin/src/OpenWeatherPlugin.h +++ b/lib/OpenWeatherPlugin/src/OpenWeatherPlugin.h @@ -164,7 +164,7 @@ class OpenWeatherPlugin : public Plugin, private PluginConfigFsHandler */ static IPluginMaintenance* create(const String& name, uint16_t uid) { - return new OpenWeatherPlugin(name, uid); + return new(std::nothrow)OpenWeatherPlugin(name, uid); } /** diff --git a/lib/RainbowPlugin/src/RainbowPlugin.h b/lib/RainbowPlugin/src/RainbowPlugin.h index 8ccbd636..b9d94f1e 100644 --- a/lib/RainbowPlugin/src/RainbowPlugin.h +++ b/lib/RainbowPlugin/src/RainbowPlugin.h @@ -90,7 +90,7 @@ class RainbowPlugin : public Plugin */ static IPluginMaintenance* create(const String& name, uint16_t uid) { - return new RainbowPlugin(name, uid); + return new(std::nothrow)RainbowPlugin(name, uid); } /** diff --git a/lib/SensorPlugin/src/SensorPlugin.h b/lib/SensorPlugin/src/SensorPlugin.h index 4db3b65e..0a1142b0 100644 --- a/lib/SensorPlugin/src/SensorPlugin.h +++ b/lib/SensorPlugin/src/SensorPlugin.h @@ -133,7 +133,7 @@ class SensorPlugin : public Plugin, private PluginConfigFsHandler */ static IPluginMaintenance* create(const String& name, uint16_t uid) { - return new SensorPlugin(name, uid); + return new(std::nothrow)SensorPlugin(name, uid); } /** diff --git a/lib/SignalDetectorPlugin/src/SignalDetectorPlugin.h b/lib/SignalDetectorPlugin/src/SignalDetectorPlugin.h index d4582625..df6c88aa 100644 --- a/lib/SignalDetectorPlugin/src/SignalDetectorPlugin.h +++ b/lib/SignalDetectorPlugin/src/SignalDetectorPlugin.h @@ -113,7 +113,7 @@ class SignalDetectorPlugin : public Plugin, private PluginConfigFsHandler */ static IPluginMaintenance* create(const String& name, uint16_t uid) { - return new SignalDetectorPlugin(name, uid); + return new(std::nothrow)SignalDetectorPlugin(name, uid); } /** diff --git a/lib/SoundReactivePlugin/src/SoundReactivePlugin.h b/lib/SoundReactivePlugin/src/SoundReactivePlugin.h index 48732c99..58742fa0 100644 --- a/lib/SoundReactivePlugin/src/SoundReactivePlugin.h +++ b/lib/SoundReactivePlugin/src/SoundReactivePlugin.h @@ -123,7 +123,7 @@ class SoundReactivePlugin : public Plugin, private PluginConfigFsHandler */ static IPluginMaintenance* create(const String& name, uint16_t uid) { - return new SoundReactivePlugin(name, uid); + return new(std::nothrow)SoundReactivePlugin(name, uid); } /** diff --git a/lib/SunrisePlugin/src/SunrisePlugin.h b/lib/SunrisePlugin/src/SunrisePlugin.h index f1908669..ee324b7f 100644 --- a/lib/SunrisePlugin/src/SunrisePlugin.h +++ b/lib/SunrisePlugin/src/SunrisePlugin.h @@ -135,7 +135,7 @@ class SunrisePlugin : public Plugin, private PluginConfigFsHandler */ static IPluginMaintenance* create(const String& name, uint16_t uid) { - return new SunrisePlugin(name, uid); + return new(std::nothrow)SunrisePlugin(name, uid); } /** diff --git a/lib/SysMsgPlugin/src/SysMsgPlugin.h b/lib/SysMsgPlugin/src/SysMsgPlugin.h index 4ffa2b82..25ab728f 100644 --- a/lib/SysMsgPlugin/src/SysMsgPlugin.h +++ b/lib/SysMsgPlugin/src/SysMsgPlugin.h @@ -103,7 +103,7 @@ class SysMsgPlugin : public Plugin */ static IPluginMaintenance* create(const String& name, uint16_t uid) { - return new SysMsgPlugin(name, uid); + return new(std::nothrow)SysMsgPlugin(name, uid); } /** diff --git a/lib/TempHumidPlugin/src/TempHumidPlugin.h b/lib/TempHumidPlugin/src/TempHumidPlugin.h index 25602095..f3c8f576 100644 --- a/lib/TempHumidPlugin/src/TempHumidPlugin.h +++ b/lib/TempHumidPlugin/src/TempHumidPlugin.h @@ -124,7 +124,7 @@ class TempHumidPlugin : public Plugin */ static IPluginMaintenance* create(const String& name, uint16_t uid) { - return new TempHumidPlugin(name, uid); + return new(std::nothrow)TempHumidPlugin(name, uid); } /** diff --git a/lib/TestPlugin/src/TestPlugin.h b/lib/TestPlugin/src/TestPlugin.h index 3c29c299..ac7dfde1 100644 --- a/lib/TestPlugin/src/TestPlugin.h +++ b/lib/TestPlugin/src/TestPlugin.h @@ -96,7 +96,7 @@ class TestPlugin : public Plugin */ static IPluginMaintenance* create(const String& name, uint16_t uid) { - return new TestPlugin(name, uid); + return new(std::nothrow)TestPlugin(name, uid); } /** diff --git a/lib/ThreeIconPlugin/src/ThreeIconPlugin.h b/lib/ThreeIconPlugin/src/ThreeIconPlugin.h index bd07b91a..68937ea2 100644 --- a/lib/ThreeIconPlugin/src/ThreeIconPlugin.h +++ b/lib/ThreeIconPlugin/src/ThreeIconPlugin.h @@ -102,7 +102,7 @@ class ThreeIconPlugin : public Plugin */ static IPluginMaintenance* create(const String& name, uint16_t uid) { - return new ThreeIconPlugin(name, uid); + return new(std::nothrow)ThreeIconPlugin(name, uid); } /** diff --git a/lib/VolumioPlugin/src/VolumioPlugin.h b/lib/VolumioPlugin/src/VolumioPlugin.h index 8772f77f..e74546c3 100644 --- a/lib/VolumioPlugin/src/VolumioPlugin.h +++ b/lib/VolumioPlugin/src/VolumioPlugin.h @@ -136,7 +136,7 @@ class VolumioPlugin : public Plugin, private PluginConfigFsHandler */ static IPluginMaintenance* create(const String& name, uint16_t uid) { - return new VolumioPlugin(name, uid); + return new(std::nothrow)VolumioPlugin(name, uid); } /** diff --git a/lib/WifiStatusPlugin/src/WifiStatusPlugin.h b/lib/WifiStatusPlugin/src/WifiStatusPlugin.h index efb98012..2daa4c40 100644 --- a/lib/WifiStatusPlugin/src/WifiStatusPlugin.h +++ b/lib/WifiStatusPlugin/src/WifiStatusPlugin.h @@ -99,7 +99,7 @@ class WifiStatusPlugin : public Plugin */ static IPluginMaintenance* create(const String& name, uint16_t uid) { - return new WifiStatusPlugin(name, uid); + return new(std::nothrow)WifiStatusPlugin(name, uid); } /** diff --git a/lib/WormPlugin/src/WormPlugin.h b/lib/WormPlugin/src/WormPlugin.h index d6c37c8f..95d038af 100644 --- a/lib/WormPlugin/src/WormPlugin.h +++ b/lib/WormPlugin/src/WormPlugin.h @@ -104,7 +104,7 @@ class WormPlugin : public Plugin */ static IPluginMaintenance* create(const String& name, uint16_t uid) { - return new WormPlugin(name, uid); + return new(std::nothrow)WormPlugin(name, uid); } /**