1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Minor clean-ups.

This commit is contained in:
jules 2013-02-03 10:55:45 +00:00
parent 1a7250615a
commit f3d9c3ebe0
4 changed files with 6 additions and 57 deletions

View file

@ -30,25 +30,6 @@
#include "GraphEditorPanel.h"
//==============================================================================
FilterConnection::FilterConnection (FilterGraph& owner_)
: owner (owner_)
{
}
FilterConnection::FilterConnection (const FilterConnection& other)
: sourceFilterID (other.sourceFilterID),
sourceChannel (other.sourceChannel),
destFilterID (other.destFilterID),
destChannel (other.destChannel),
owner (other.owner)
{
}
FilterConnection::~FilterConnection()
{
}
//==============================================================================
const int FilterGraph::midiChannelNumber = 0x1000;
@ -339,9 +320,7 @@ void FilterGraph::createNodeFromXml (const XmlElement& xml)
AudioProcessorGraph::Node::Ptr node (graph.addNode (instance, xml.getIntAttribute ("uid")));
const XmlElement* const state = xml.getChildByName ("STATE");
if (state != nullptr)
if (const XmlElement* const state = xml.getChildByName ("STATE"))
{
MemoryBlock m;
m.fromBase64Encoding (state->getAllSubText());
@ -359,13 +338,10 @@ XmlElement* FilterGraph::createXml() const
{
XmlElement* xml = new XmlElement ("FILTERGRAPH");
int i;
for (i = 0; i < graph.getNumNodes(); ++i)
{
for (int i = 0; i < graph.getNumNodes(); ++i)
xml->addChildElement (createNodeXml (graph.getNode (i)));
}
for (i = 0; i < graph.getNumConnections(); ++i)
for (int i = 0; i < graph.getNumConnections(); ++i)
{
const AudioProcessorGraph::Connection* const fc = graph.getConnection(i);

View file

@ -32,33 +32,6 @@ class FilterGraph;
const char* const filenameSuffix = ".filtergraph";
const char* const filenameWildcard = "*.filtergraph";
//==============================================================================
/**
Represents a connection between two pins in a FilterGraph.
*/
class FilterConnection
{
public:
//==============================================================================
FilterConnection (FilterGraph& owner);
FilterConnection (const FilterConnection& other);
~FilterConnection();
//==============================================================================
uint32 sourceFilterID;
int sourceChannel;
uint32 destFilterID;
int destChannel;
//==============================================================================
juce_UseDebuggingNewOperator
private:
FilterGraph& owner;
FilterConnection& operator= (const FilterConnection&);
};
//==============================================================================
/**
A collection of filters and some connections between them.