mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-03 03:30:06 +00:00
Minor code clean-ups.
This commit is contained in:
parent
9f201da3c5
commit
08eb852103
289 changed files with 779 additions and 780 deletions
|
|
@ -170,7 +170,7 @@ void OutputStream::writeString (const String& text)
|
|||
// (This avoids using toUTF8() to prevent the memory bloat that it would leave behind
|
||||
// if lots of large, persistent strings were to be written to streams).
|
||||
const int numBytes = text.getNumBytesAsUTF8() + 1;
|
||||
HeapBlock <uint8> temp (numBytes);
|
||||
HeapBlock<char> temp (numBytes);
|
||||
text.copyToUTF8 (temp, numBytes);
|
||||
write (temp, numBytes);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue