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

More ScopedPointer/unique_ptr compatibility work

This commit is contained in:
jules 2018-01-10 17:35:08 +00:00
parent 48a5fbd333
commit 1a60fa9765
80 changed files with 404 additions and 368 deletions

View file

@ -36,7 +36,7 @@ namespace juce
//==============================================================================
VideoComponent::VideoComponent() : pimpl (new Pimpl())
{
addAndMakeVisible (pimpl);
addAndMakeVisible (pimpl.get());
}
VideoComponent::~VideoComponent()
@ -46,14 +46,14 @@ VideoComponent::~VideoComponent()
Result VideoComponent::load (const File& file)
{
Result r = pimpl->load (file);
auto r = pimpl->load (file);
resized();
return r;
}
Result VideoComponent::load (const URL& url)
{
Result r = pimpl->load (url);
auto r = pimpl->load (url);
resized();
return r;
}
@ -86,11 +86,11 @@ float VideoComponent::getAudioVolume() const { return pimpl->getV
void VideoComponent::resized()
{
Rectangle<int> r = getLocalBounds();
auto r = getLocalBounds();
if (isVideoOpen() && ! r.isEmpty())
{
Rectangle<int> nativeSize = getVideoNativeSize();
auto nativeSize = getVideoNativeSize();
if (nativeSize.isEmpty())
{