1
0
Fork 0
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:
Julian Storer 2010-02-22 15:28:18 +00:00
parent 9f201da3c5
commit 08eb852103
289 changed files with 779 additions and 780 deletions

View file

@ -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);
}