From 5b3183bff2f0875b672c3cdfb5bb4a8b20c8d2a6 Mon Sep 17 00:00:00 2001 From: falkTX Date: Mon, 7 Oct 2019 11:43:46 +0100 Subject: [PATCH] Replace with wasserts Signed-off-by: falkTX --- source/modules/water/processors/AudioProcessorGraph.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/modules/water/processors/AudioProcessorGraph.cpp b/source/modules/water/processors/AudioProcessorGraph.cpp index 026f18d96..c87e6fae0 100644 --- a/source/modules/water/processors/AudioProcessorGraph.cpp +++ b/source/modules/water/processors/AudioProcessorGraph.cpp @@ -1231,7 +1231,7 @@ AudioProcessorGraph::Node* AudioProcessorGraph::addNode (AudioProcessor* const n for (int i = nodes.size(); --i >= 0;) { - CARLA_SAFE_ASSERT_RETURN(nodes.getUnchecked(i)->getProcessor() != newProcessor, nullptr); + CARLA_SAFE_ASSERT_RETURN (nodes.getUnchecked(i)->getProcessor() != newProcessor, nullptr); } if (nodeId == 0) @@ -1241,7 +1241,7 @@ AudioProcessorGraph::Node* AudioProcessorGraph::addNode (AudioProcessor* const n else { // you can't add a node with an id that already exists in the graph.. - wassert (getNodeForId (nodeId) == nullptr); + CARLA_SAFE_ASSERT_RETURN (getNodeForId (nodeId) == nullptr, nullptr); removeNode (nodeId); if (nodeId > lastNodeId) @@ -1416,7 +1416,7 @@ bool AudioProcessorGraph::disconnectNode (const uint32 nodeId) bool AudioProcessorGraph::isConnectionLegal (const Connection* const c) const { - wassert (c != nullptr); + CARLA_SAFE_ASSERT_RETURN (c != nullptr, false); const Node* const source = getNodeForId (c->sourceNodeId); const Node* const dest = getNodeForId (c->destNodeId);