1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-07 04:10:08 +00:00

Formatting

This commit is contained in:
Tom Poole 2023-09-29 16:41:53 +01:00
parent ff0cb4ad5b
commit 4153d59e39
279 changed files with 1281 additions and 1281 deletions

View file

@ -74,8 +74,8 @@ AudioThumbnailCache::~AudioThumbnailCache()
AudioThumbnailCache::ThumbnailCacheEntry* AudioThumbnailCache::findThumbFor (const int64 hash) const
{
for (int i = thumbs.size(); --i >= 0;)
if (thumbs.getUnchecked(i)->hash == hash)
return thumbs.getUnchecked(i);
if (thumbs.getUnchecked (i)->hash == hash)
return thumbs.getUnchecked (i);
return nullptr;
}
@ -87,7 +87,7 @@ int AudioThumbnailCache::findOldestThumb() const
for (int i = thumbs.size(); --i >= 0;)
{
const ThumbnailCacheEntry* const te = thumbs.getUnchecked(i);
const ThumbnailCacheEntry* const te = thumbs.getUnchecked (i);
if (te->lastUsed < oldestTime)
{
@ -150,7 +150,7 @@ void AudioThumbnailCache::removeThumb (const int64 hashCode)
const ScopedLock sl (lock);
for (int i = thumbs.size(); --i >= 0;)
if (thumbs.getUnchecked(i)->hash == hashCode)
if (thumbs.getUnchecked (i)->hash == hashCode)
thumbs.remove (i);
}
@ -182,7 +182,7 @@ void AudioThumbnailCache::writeToStream (OutputStream& out)
out.writeInt (thumbs.size());
for (int i = 0; i < thumbs.size(); ++i)
thumbs.getUnchecked(i)->write (out);
thumbs.getUnchecked (i)->write (out);
}
void AudioThumbnailCache::saveNewlyFinishedThumbnail (const AudioThumbnailBase&, int64)