mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-14 00:14:18 +00:00
Minor code clean-ups.
This commit is contained in:
parent
9f201da3c5
commit
08eb852103
289 changed files with 779 additions and 780 deletions
|
|
@ -489,7 +489,7 @@ int64 String::hashCode64() const throw()
|
|||
}
|
||||
|
||||
//==============================================================================
|
||||
const String& String::operator= (const String& other) throw()
|
||||
String& String::operator= (const String& other) throw()
|
||||
{
|
||||
if (this != &other)
|
||||
{
|
||||
|
|
@ -777,8 +777,8 @@ OutputStream& JUCE_PUBLIC_FUNCTION operator<< (OutputStream& stream, const Stri
|
|||
// (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();
|
||||
HeapBlock <uint8> temp (numBytes);
|
||||
text.copyToUTF8 (temp, numBytes);
|
||||
HeapBlock<char> temp (numBytes + 1);
|
||||
text.copyToUTF8 (temp, numBytes + 1);
|
||||
stream.write (temp, numBytes);
|
||||
return stream;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue