mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Replaced all usage of ScopedPointer with std::unique_ptr
This commit is contained in:
parent
e6104e3fed
commit
ab863a6dc2
401 changed files with 1091 additions and 1113 deletions
|
|
@ -193,9 +193,7 @@ public:
|
|||
// we need to open URL manually.
|
||||
|
||||
URL urlToUse = URL (url).withPOSTData (*postData);
|
||||
|
||||
connectionThread = nullptr;
|
||||
connectionThread = new ConnectionThread (*this, urlToUse, *headers);
|
||||
connectionThread.reset (new ConnectionThread (*this, urlToUse, *headers));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -358,7 +356,7 @@ private:
|
|||
}
|
||||
|
||||
Pimpl& owner;
|
||||
ScopedPointer<WebInputStream> webInputStream;
|
||||
std::unique_ptr<WebInputStream> webInputStream;
|
||||
Result result;
|
||||
};
|
||||
|
||||
|
|
@ -366,7 +364,7 @@ private:
|
|||
WebBrowserComponent& owner;
|
||||
GlobalRef juceWebChromeClient;
|
||||
GlobalRef juceWebViewClient;
|
||||
ScopedPointer<ConnectionThread> connectionThread;
|
||||
std::unique_ptr<ConnectionThread> connectionThread;
|
||||
WaitableEvent responseReadyEvent;
|
||||
|
||||
WeakReference<Pimpl>::Master masterReference;
|
||||
|
|
@ -380,7 +378,8 @@ WebBrowserComponent::WebBrowserComponent (const bool unloadWhenHidden)
|
|||
{
|
||||
setOpaque (true);
|
||||
|
||||
addAndMakeVisible (browser = new Pimpl (*this));
|
||||
browser.reset (new Pimpl (*this));
|
||||
addAndMakeVisible (browser.get());
|
||||
}
|
||||
|
||||
WebBrowserComponent::~WebBrowserComponent()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue