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

Fixed some compiler warnings

This commit is contained in:
Tom Poole 2019-03-08 16:41:27 +00:00
parent f2db4bfba8
commit cbdf5e6d21
20 changed files with 132 additions and 120 deletions

View file

@ -197,7 +197,7 @@ struct GraphEditorPanel::FilterComponent : public Component,
FilterComponent (const FilterComponent&) = delete;
FilterComponent& operator= (const FilterComponent&) = delete;
~FilterComponent()
~FilterComponent() override
{
if (auto f = graph.graph.getNodeForId (pluginID))
{
@ -812,7 +812,7 @@ void GraphEditorPanel::updateComponents()
for (auto* f : graph.graph.getNodes())
{
if (getComponentForFilter (f->nodeID) == 0)
if (getComponentForFilter (f->nodeID) == nullptr)
{
auto* comp = nodes.add (new FilterComponent (*this, f->nodeID));
addAndMakeVisible (comp);
@ -822,7 +822,7 @@ void GraphEditorPanel::updateComponents()
for (auto& c : graph.graph.getConnections())
{
if (getComponentForConnection (c) == 0)
if (getComponentForConnection (c) == nullptr)
{
auto* comp = connectors.add (new ConnectorComponent (*this));
addAndMakeVisible (comp);
@ -844,8 +844,8 @@ void GraphEditorPanel::showPopupMenu (Point<int> mousePos)
menu->showMenuAsync ({},
ModalCallbackFunction::create ([this, mousePos] (int r)
{
if (auto* mainWindow = findParentComponentOfClass<MainHostWindow>())
if (auto* desc = mainWindow->getChosenType (r))
if (auto* mainWin = findParentComponentOfClass<MainHostWindow>())
if (auto* desc = mainWin->getChosenType (r))
createNewPlugin (*desc, mousePos);
}));
}