mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-14 00:14:18 +00:00
Minor code modernisations.
This commit is contained in:
parent
f3b46c9a2f
commit
b2e5ef2bd6
17 changed files with 104 additions and 96 deletions
|
|
@ -2222,7 +2222,7 @@ const String String::fromUTF8 (const uint8* const buffer, int bufferSizeBytes) t
|
|||
return empty;
|
||||
|
||||
if (bufferSizeBytes < 0)
|
||||
bufferSizeBytes = INT_MAX;
|
||||
bufferSizeBytes = std::numeric_limits<int>::max();
|
||||
|
||||
size_t numBytes;
|
||||
for (numBytes = 0; numBytes < (size_t) bufferSizeBytes; ++numBytes)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue