mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Misc ScopedPointer changes to start using reset() and get() rather than assignments and casts (part of an ongoing drift towards more std::unique_ptr compatibility)
This commit is contained in:
parent
c1bdfc6a55
commit
2dc9316420
131 changed files with 574 additions and 576 deletions
|
|
@ -99,11 +99,11 @@ ProjectContentComponent::~ProjectContentComponent()
|
|||
|
||||
ProjucerApplication::getApp().openDocumentManager.removeListener (this);
|
||||
|
||||
logo = nullptr;
|
||||
header = nullptr;
|
||||
logo.reset();
|
||||
header.reset();
|
||||
setProject (nullptr);
|
||||
contentView = nullptr;
|
||||
fileNameLabel = nullptr;
|
||||
contentView.reset();
|
||||
fileNameLabel.reset();
|
||||
removeChildComponent (&bubbleMessage);
|
||||
jassert (getNumChildComponents() <= 1);
|
||||
}
|
||||
|
|
@ -178,8 +178,8 @@ void ProjectContentComponent::setProject (Project* newProject)
|
|||
if (project != nullptr)
|
||||
project->removeChangeListener (this);
|
||||
|
||||
contentView = nullptr;
|
||||
resizerBar = nullptr;
|
||||
contentView.reset();
|
||||
resizerBar.reset();
|
||||
|
||||
deleteProjectTabs();
|
||||
project = newProject;
|
||||
|
|
@ -391,7 +391,7 @@ bool ProjectContentComponent::showDocument (OpenDocumentManager::Document* doc,
|
|||
void ProjectContentComponent::hideEditor()
|
||||
{
|
||||
currentDocument = nullptr;
|
||||
contentView = nullptr;
|
||||
contentView.reset();
|
||||
|
||||
if (fileNameLabel != nullptr)
|
||||
fileNameLabel->setVisible (false);
|
||||
|
|
@ -416,7 +416,7 @@ bool ProjectContentComponent::setEditorComponent (Component* editor,
|
|||
{
|
||||
if (editor != nullptr)
|
||||
{
|
||||
contentView = nullptr;
|
||||
contentView.reset();
|
||||
|
||||
if (doc == nullptr)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue