1
0
Fork 0
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:
Julian Storer 2010-03-07 13:01:33 +00:00
parent c9c8824294
commit b974203d0f
22 changed files with 328 additions and 326 deletions

View file

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