- 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:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user