Skip to content

Commit 0a0de03

Browse files
committed
ICU-20392 Use isBogus() instead of private member fIsBogus directly.
1 parent 259c2e3 commit 0a0de03

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
@@ -1220,7 +1220,7 @@ Locale::getScript() const
12201220
inline const char *
12211221
Locale::getVariant() const
12221222
{
1223-
return fIsBogus ? "" : &baseName[variantBegin];
1223+
return isBogus() ? "" : &baseName[variantBegin];
12241224
}
12251225

12261226
inline const char *

0 commit comments

Comments
 (0)