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

Avoided a few pedantic warnings in the plugin host demo

This commit is contained in:
jules 2015-12-13 11:04:56 +00:00
parent 08a0bada12
commit 9d29fd4c9d
3 changed files with 9 additions and 9 deletions

View file

@ -329,7 +329,7 @@ void FilterGraph::createNodeFromXml (const XmlElement& xml)
if (instance == nullptr)
return;
AudioProcessorGraph::Node::Ptr node (graph.addNode (instance, xml.getIntAttribute ("uid")));
AudioProcessorGraph::Node::Ptr node (graph.addNode (instance, (uint32) xml.getIntAttribute ("uid")));
if (const XmlElement* const state = xml.getChildByName ("STATE"))
{

View file

@ -322,7 +322,7 @@ public:
deleteAllChildren();
}
void mouseDown (const MouseEvent& e)
void mouseDown (const MouseEvent& e) override
{
originalPos = localPointToGlobal (Point<int>());
@ -384,7 +384,7 @@ public:
}
}
void mouseDrag (const MouseEvent& e)
void mouseDrag (const MouseEvent& e) override
{
if (! e.mods.isPopupMenu())
{
@ -401,7 +401,7 @@ public:
}
}
void mouseUp (const MouseEvent& e)
void mouseUp (const MouseEvent& e) override
{
if (e.mouseWasClicked() && e.getNumberOfClicks() == 2)
{
@ -415,7 +415,7 @@ public:
}
}
bool hitTest (int x, int y)
bool hitTest (int x, int y) override
{
for (int i = getNumChildComponents(); --i >= 0;)
if (getChildComponent(i)->getBounds().contains (x, y))
@ -424,7 +424,7 @@ public:
return x >= 3 && x < getWidth() - 6 && y >= pinSize && y < getHeight() - pinSize;
}
void paint (Graphics& g)
void paint (Graphics& g) override
{
g.setColour (Colours::lightgrey);
@ -443,7 +443,7 @@ public:
g.drawRect (x, y, w, h);
}
void resized()
void resized() override
{
for (int i = 0; i < getNumChildComponents(); ++i)
{

View file

@ -31,7 +31,7 @@
class MainHostWindow::PluginListWindow : public DocumentWindow
{
public:
PluginListWindow (MainHostWindow& owner_, AudioPluginFormatManager& formatManager)
PluginListWindow (MainHostWindow& owner_, AudioPluginFormatManager& pluginFormatManager)
: DocumentWindow ("Available Plugins", Colours::white,
DocumentWindow::minimiseButton | DocumentWindow::closeButton),
owner (owner_)
@ -39,7 +39,7 @@ public:
const File deadMansPedalFile (getAppProperties().getUserSettings()
->getFile().getSiblingFile ("RecentlyCrashedPluginsList"));
setContentOwned (new PluginListComponent (formatManager,
setContentOwned (new PluginListComponent (pluginFormatManager,
owner.knownPluginList,
deadMansPedalFile,
getAppProperties().getUserSettings()), true);