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

Used MemoryBlock::isEmpty() in a few places

This commit is contained in:
ed 2021-04-22 17:35:48 +01:00
parent b2b1685ca6
commit 0fc1ede50f
12 changed files with 20 additions and 20 deletions

View file

@ -364,7 +364,7 @@ JUCE_API OutputStream& JUCE_CALLTYPE operator<< (OutputStream& stream, const cha
JUCE_API OutputStream& JUCE_CALLTYPE operator<< (OutputStream& stream, const MemoryBlock& data)
{
if (data.getSize() > 0)
if (! data.isEmpty())
stream.write (data.getData(), data.getSize());
return stream;