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:
parent
f2db4bfba8
commit
cbdf5e6d21
20 changed files with 132 additions and 120 deletions
|
|
@ -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);
|
||||
}));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue