mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Use NullCheckedInvocation in more places
This commit is contained in:
parent
84750f2f2a
commit
ff0cb4ad5b
46 changed files with 145 additions and 258 deletions
|
|
@ -199,7 +199,7 @@ public:
|
|||
|
||||
shouldExit = true;
|
||||
|
||||
if (webStream.get() != nullptr)
|
||||
if (webStream != nullptr)
|
||||
webStream->cancel();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@ public:
|
|||
// invoked by the 'ping' button.
|
||||
void pingChildProcess()
|
||||
{
|
||||
if (coordinatorProcess.get() != nullptr)
|
||||
if (coordinatorProcess != nullptr)
|
||||
coordinatorProcess->sendPingMessageToWorker();
|
||||
else
|
||||
logMessage ("Child process is not running!");
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
if (oldOpenness.get() != nullptr)
|
||||
if (oldOpenness != nullptr)
|
||||
treeView.restoreOpennessState (*oldOpenness, false);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -312,12 +312,12 @@ private:
|
|||
{
|
||||
std::unique_ptr<XmlElement> openness;
|
||||
|
||||
if (rootItem.get() != nullptr)
|
||||
if (rootItem != nullptr)
|
||||
openness = rootItem->getOpennessState();
|
||||
|
||||
createNewRootNode();
|
||||
|
||||
if (openness.get() != nullptr && rootItem.get() != nullptr)
|
||||
if (openness != nullptr && rootItem != nullptr)
|
||||
rootItem->restoreOpennessState (*openness);
|
||||
}
|
||||
|
||||
|
|
@ -336,7 +336,7 @@ private:
|
|||
}
|
||||
|
||||
// if we have a valid TreeViewItem hide any old error messages and set our TreeView to use it
|
||||
if (rootItem.get() != nullptr)
|
||||
if (rootItem != nullptr)
|
||||
errorMessage.clear();
|
||||
|
||||
errorMessage.setVisible (! errorMessage.isEmpty());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue