mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 09:15:35 +00:00
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:
parent
437d692c12
commit
2c71663c5e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user