mirror of
https://github.com/corda/corda.git
synced 2025-01-21 03:55:00 +00:00
Fixed minor compiler warnings.
This commit is contained in:
parent
0713f8d5cb
commit
8c54446c67
@ -148,7 +148,7 @@ class Locale { // represents an ISO two-char language/country pair
|
|||||||
unsigned len = strlen(language);
|
unsigned len = strlen(language);
|
||||||
if (len != FIELDLEN) return false;
|
if (len != FIELDLEN) return false;
|
||||||
const char* p = language - 1;
|
const char* p = language - 1;
|
||||||
while (islower(*++p));
|
while (islower(*++p)) ;
|
||||||
if (*p != '\0') return false;
|
if (*p != '\0') return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -158,7 +158,7 @@ class Locale { // represents an ISO two-char language/country pair
|
|||||||
unsigned len = strlen(region);
|
unsigned len = strlen(region);
|
||||||
if (len != FIELDLEN) return false;
|
if (len != FIELDLEN) return false;
|
||||||
const char* p = region - 1;
|
const char* p = region - 1;
|
||||||
while (isupper(*++p));
|
while (isupper(*++p)) ;
|
||||||
if (*p != '\0') return false;
|
if (*p != '\0') return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user