Browse Source

Replace with wasserts

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.1-rc1
falkTX 5 years ago
parent
commit
5b3183bff2
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      source/modules/water/processors/AudioProcessorGraph.cpp

+ 3
- 3
source/modules/water/processors/AudioProcessorGraph.cpp View File

@@ -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);


Loading…
Cancel
Save