- more cleanup from cppcheck (using eclipse plugin now)

This commit is contained in:
Mark Vejvoda
2011-12-02 17:46:02 +00:00
parent f6dafcde3c
commit 66f44ff7c4
10 changed files with 24 additions and 16 deletions

View File

@@ -208,9 +208,9 @@ float TextFreetypeGL::Advance(const char* str, const int len) {
FreetypeGLUnicodeStringItr<unsigned char> ustr((const unsigned char *)str);
for(int i = 0; (len < 0 && *ustr) || (len >= 0 && i < len); i++) {
unsigned int prevChar = (i > 0 ? *ustr-1 : 0);
//unsigned int prevChar = (i > 0 ? *ustr-1 : 0);
unsigned int thisChar = *ustr++;
unsigned int nextChar = *ustr;
//unsigned int nextChar = *ustr;
// Get glyph (build it if needed
TextureGlyph *glyph = texture_font_get_glyph( this->font, thisChar );

View File

@@ -616,11 +616,11 @@ string getNetworkInterfaceBroadcastAddress(string ipAddress)
next = next->Next;
}
}
char buf[128]="";
//char buf[128]="";
if (name == NULL)
{
//sprintf(buf, "unnamed-%i", i);
name = buf;
name = "";
}
uint32 ipAddr = ntohl(row.dwAddr);