Skip to content

Commit 8348392

Browse files
Remove the got local
1 parent e8cef3b commit 8348392

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

src/java.base/windows/native/libjava/HostLocaleProviderAdapter_md.c

+10-7
Original file line numberDiff line numberDiff line change
@@ -967,33 +967,36 @@ void getFixPart(const jchar * langtag, const jint numberStyle, BOOL positive, BO
967967
int style = numberStyle;
968968
// int got = 0;
969969

970-
/*
971970
if (positive) {
972971
if (style == sun_util_locale_provider_HostLocaleProviderAdapterImpl_NF_CURRENCY) {
973-
got = getLocaleInfoWrapper(langtag,
972+
// got =
973+
getLocaleInfoWrapper(langtag,
974974
LOCALE_ICURRENCY | LOCALE_RETURN_NUMBER,
975975
(LPWSTR)&pattern, sizeof(pattern));
976976
} else if (style == sun_util_locale_provider_HostLocaleProviderAdapterImpl_NF_PERCENT) {
977-
got = getLocaleInfoWrapper(langtag,
977+
// got =
978+
getLocaleInfoWrapper(langtag,
978979
LOCALE_IPOSITIVEPERCENT | LOCALE_RETURN_NUMBER,
979980
(LPWSTR)&pattern, sizeof(pattern));
980981
}
981982
} else {
982983
if (style == sun_util_locale_provider_HostLocaleProviderAdapterImpl_NF_CURRENCY) {
983-
got = getLocaleInfoWrapper(langtag,
984+
// got =
985+
getLocaleInfoWrapper(langtag,
984986
LOCALE_INEGCURR | LOCALE_RETURN_NUMBER,
985987
(LPWSTR)&pattern, sizeof(pattern));
986988
} else if (style == sun_util_locale_provider_HostLocaleProviderAdapterImpl_NF_PERCENT) {
987-
got = getLocaleInfoWrapper(langtag,
989+
// got =
990+
getLocaleInfoWrapper(langtag,
988991
LOCALE_INEGATIVEPERCENT | LOCALE_RETURN_NUMBER,
989992
(LPWSTR)&pattern, sizeof(pattern));
990993
} else {
991-
got = getLocaleInfoWrapper(langtag,
994+
// got =
995+
getLocaleInfoWrapper(langtag,
992996
LOCALE_INEGNUMBER | LOCALE_RETURN_NUMBER,
993997
(LPWSTR)&pattern, sizeof(pattern));
994998
}
995999
}
996-
*/
9971000

9981001
if (numberStyle == sun_util_locale_provider_HostLocaleProviderAdapterImpl_NF_INTEGER) {
9991002
style = sun_util_locale_provider_HostLocaleProviderAdapterImpl_NF_NUMBER;

0 commit comments

Comments
 (0)