Skip to content

Commit e9fda57

Browse files
committed
ICU-20392 Use isBogus() instead of private member fIsBogus directly.
1 parent c656f65 commit e9fda57

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

icu4c/source/common/locid.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2191,7 +2191,7 @@ Locale::toLanguageTag(ByteSink& sink, UErrorCode& status) const
21912191
return;
21922192
}
21932193

2194-
if (fIsBogus) {
2194+
if (isBogus()) {
21952195
status = U_ILLEGAL_ARGUMENT_ERROR;
21962196
return;
21972197
}
@@ -2613,7 +2613,7 @@ Locale::getKeywordValue(StringPiece keywordName, ByteSink& sink, UErrorCode& sta
26132613
return;
26142614
}
26152615

2616-
if (fIsBogus) {
2616+
if (isBogus()) {
26172617
status = U_ILLEGAL_ARGUMENT_ERROR;
26182618
return;
26192619
}

icu4c/source/common/unicode/locid.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1229,7 +1229,7 @@ Locale::getScript() const
12291229
U_COMMON_API inline const char*
12301230
Locale::getVariant() const
12311231
{
1232-
return fIsBogus ? "" : &baseName[variantBegin];
1232+
return isBogus() ? "" : &baseName[variantBegin];
12331233
}
12341234

12351235
U_COMMON_API inline const char*

0 commit comments

Comments
 (0)