mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-27 02:20:05 +00:00
Couple of new methods for String. Cleaned up some component code to use SafePointers.
This commit is contained in:
parent
c9c8824294
commit
b974203d0f
22 changed files with 328 additions and 326 deletions
|
|
@ -866,10 +866,7 @@ const String BitArray::toString (const int base, const int minimumNumCharacters)
|
|||
return String::empty;
|
||||
}
|
||||
|
||||
const int length = s.length();
|
||||
|
||||
if (length < minimumNumCharacters)
|
||||
s = String::repeatedString (T("0"), minimumNumCharacters - length) + s;
|
||||
s = s.paddedLeft ('0', minimumNumCharacters);
|
||||
|
||||
return isNegative() ? T("-") + s : s;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue