renamed (Const)Iterator to (const_)iterator; changed size() to return an uint

svn-id: r12722
This commit is contained in:
Max Horn 2004-02-05 00:19:57 +00:00
parent dc852177fb
commit f59eb3b219
27 changed files with 63 additions and 71 deletions

View file

@ -459,7 +459,7 @@ void NewGui::drawChar(byte chr, int xx, int yy, NewGuiColor color) {
int NewGui::getStringWidth(const String &str) {
int space = 0;
for (int i = 0; i < str.size(); ++i)
for (uint i = 0; i < str.size(); ++i)
space += getCharWidth(str[i]);
return space;
}
@ -483,7 +483,7 @@ int NewGui::getCharWidth(byte c) {
void NewGui::drawString(const String &s, int x, int y, int w, NewGuiColor color, int align, int deltax, bool useEllipsis) {
const int leftX = x, rightX = x + w;
int i;
uint i;
int width = getStringWidth(s);
String str;