Bug 1568516 - Allow a uint32_t static pref with a mirror value of never. r=KrisWright

There was a missing setter function for this combination, which hasn't been
used before.

Differential Revision: https://phabricator.services.mozilla.com/D39263

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Nicholas Nethercote 2019-07-25 02:26:14 +00:00
parent 437d692c12
commit 2c71663c5e

View File

@ -5327,6 +5327,10 @@ static void SetPref_int32_t(const char* aName, int32_t aDefaultValue) {
/* fromInit */ true);
}
static void SetPref_uint32_t(const char* aName, uint32_t aDefaultValue) {
SetPref_int32_t(aName, int32_t(aDefaultValue));
}
static void SetPref_float(const char* aName, float aDefaultValue) {
PrefValue value;
// Convert the value in a locale-independent way.
@ -5357,7 +5361,7 @@ static void SetPref(const char* aName, int32_t aDefaultValue) {
SetPref_int32_t(aName, aDefaultValue);
}
static void SetPref(const char* aName, uint32_t aDefaultValue) {
SetPref_int32_t(aName, int32_t(aDefaultValue));
SetPref_uint32_t(aName, aDefaultValue);
}
static void SetPref(const char* aName, float aDefaultValue) {
SetPref_float(aName, aDefaultValue);