зеркало из https://github.com/mozilla/pjs.git
removed call to deprecated string method
This commit is contained in:
Родитель
a860304f2e
Коммит
c236c5f02d
|
@ -754,7 +754,7 @@ nsDNSService::Lookup(nsISupports* clientContext,
|
|||
|
||||
PRBool numeric = PR_TRUE;
|
||||
for (const char *hostCheck = hostName; *hostCheck; hostCheck++) {
|
||||
if (!nsString2::IsDigit(*hostCheck) && (*hostCheck != '.') ) {
|
||||
if (!nsCRT::IsAsciiDigit(*hostCheck) && (*hostCheck != '.') ) {
|
||||
numeric = PR_FALSE;
|
||||
break;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче