mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-31 11:01:40 +00:00
Changing a mixture of old C-style casts and C++ constructor type casts to NS_STATIC_CAST to be consistent. This is a followup to my build bustage fix this morning, sr=scc@mozilla.org
This commit is contained in:
parent
88dd737fa7
commit
22fd504a80
@ -234,19 +234,19 @@ char* nsCRT::strtok(char* string, const char* delims, char* *newStr)
|
||||
delimTable[i] = '\0';
|
||||
|
||||
for (i = 0; delims[i]; i++) {
|
||||
SET_DELIM(delimTable, (PRUint8)delims[i]);
|
||||
SET_DELIM(delimTable, NS_STATIC_CAST(PRUint8, delims[i]));
|
||||
}
|
||||
NS_ASSERTION(delims[i] == '\0', "too many delimiters");
|
||||
|
||||
// skip to beginning
|
||||
while (*str && IS_DELIM(delimTable, PRUint8(*str))) {
|
||||
while (*str && IS_DELIM(delimTable, NS_STATIC_CAST(PRUint8, *str))) {
|
||||
str++;
|
||||
}
|
||||
result = str;
|
||||
|
||||
// fix up the end of the token
|
||||
while (*str) {
|
||||
if (IS_DELIM(delimTable, (PRUint8)*str)) {
|
||||
if (IS_DELIM(delimTable, NS_STATIC_CAST(PRUint8, *str))) {
|
||||
*str++ = '\0';
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user