- use %u rather tham %d for unsigned ints in string formatting funcs.

- replace (strlen(str) == 0) with str[0]=='\0'
This commit is contained in:
Campbell Barton
2011-08-27 03:25:02 +00:00
parent 6926060185
commit c96f28a718
15 changed files with 71 additions and 71 deletions

View File

@@ -105,7 +105,7 @@ Exception::Exception (ExceptionID & expID, RESULT rslt, const char * fil, int li
: m_expID (&expID), m_hRslt (rslt)
{
// set file and line
if (strlen(fil) > 0 || lin > 0)
if (fil[0] != '\0' || lin > 0)
setFileLine (fil, lin);
}