Bug 1610974 - Use designated initializers consistently in LookAndFeelInt r=hiro

To avoid a clang-10 failure with `error: mixture of designated and non-designated initializers in the same initializer list is a C99 extension [-Werror,-Wc99-designator]`

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
David Major 2020-01-27 21:22:55 +00:00
Родитель 2cf80d119a
Коммит 7987e54c54
2 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -528,7 +528,8 @@ nsTArray<LookAndFeelInt> nsLookAndFeel::GetIntCacheImpl() {
const IntID kIdsToCache[] = {eIntID_PrefersReducedMotion};
for (IntID id : kIdsToCache) {
lookAndFeelIntCache.AppendElement(LookAndFeelInt{id, .value = GetInt(id)});
lookAndFeelIntCache.AppendElement(
LookAndFeelInt{.id = id, .value = GetInt(id)});
}
return lookAndFeelIntCache;

Просмотреть файл

@ -291,7 +291,8 @@ nsTArray<LookAndFeelInt> nsLookAndFeel::GetIntCacheImpl() {
eIntID_UseAccessibilityTheme};
for (IntID id : kIdsToCache) {
lookAndFeelIntCache.AppendElement(LookAndFeelInt{id, .value = GetInt(id)});
lookAndFeelIntCache.AppendElement(
LookAndFeelInt{.id = id, .value = GetInt(id)});
}
return lookAndFeelIntCache;