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
|
|
@ -120,7 +120,7 @@ public:
|
|||
sampleRate = reader->sampleRate;
|
||||
|
||||
if (lengthInSamples <= 0 || isFullyLoaded())
|
||||
reader = nullptr;
|
||||
reader.reset();
|
||||
else
|
||||
owner.cache.getTimeSliceThread().addTimeSliceClient (this);
|
||||
}
|
||||
|
|
@ -155,7 +155,7 @@ public:
|
|||
void releaseResources()
|
||||
{
|
||||
const ScopedLock sl (readerLock);
|
||||
reader = nullptr;
|
||||
reader.reset();
|
||||
}
|
||||
|
||||
int useTimeSlice() override
|
||||
|
|
@ -557,7 +557,7 @@ AudioThumbnail::~AudioThumbnail()
|
|||
|
||||
void AudioThumbnail::clear()
|
||||
{
|
||||
source = nullptr;
|
||||
source.reset();
|
||||
const ScopedLock sl (lock);
|
||||
clearChannelData();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue