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:
parent
b2b1685ca6
commit
0fc1ede50f
12 changed files with 20 additions and 20 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue