From 78f95d24e6592f0172aa2a7e5a2d2e9af437bd7f Mon Sep 17 00:00:00 2001 From: falkTX Date: Mon, 12 Jan 2015 12:19:41 +0000 Subject: [PATCH] Misc --- source/native-plugins/midi-base.hpp | 5 +++-- source/native-plugins/zynaddsubfx-synth.cpp | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/source/native-plugins/midi-base.hpp b/source/native-plugins/midi-base.hpp index 45770f6f5..0b5509de3 100644 --- a/source/native-plugins/midi-base.hpp +++ b/source/native-plugins/midi-base.hpp @@ -22,6 +22,7 @@ #include "CarlaMutex.hpp" #include "LinkedList.hpp" +#include "CarlaJuceUtils.hpp" #include "CarlaMathUtils.hpp" #define MAX_EVENT_DATA_SIZE 4 @@ -33,11 +34,11 @@ struct RawMidiEvent { uint8_t size; uint8_t data[MAX_EVENT_DATA_SIZE]; - RawMidiEvent() + RawMidiEvent() noexcept : time(0), size(0) { - carla_fill(data, 0, MAX_EVENT_DATA_SIZE); + carla_zeroBytes(data, MAX_EVENT_DATA_SIZE); } }; diff --git a/source/native-plugins/zynaddsubfx-synth.cpp b/source/native-plugins/zynaddsubfx-synth.cpp index 073da7245..15f6e73d9 100644 --- a/source/native-plugins/zynaddsubfx-synth.cpp +++ b/source/native-plugins/zynaddsubfx-synth.cpp @@ -59,7 +59,7 @@ extern CarlaString gUiPixmapPath; void set_module_parameters(Fl_Widget* o) { - CARLA_ASSERT(gModuleBackdrop != nullptr); + CARLA_SAFE_ASSERT_RETURN(gModuleBackdrop != nullptr,); o->box(FL_DOWN_FRAME); o->align(o->align() | FL_ALIGN_IMAGE_BACKDROP);