style: Use an enum class for LookAndFeel::FontID.

Differential Revision: https://phabricator.services.mozilla.com/D76696
This commit is contained in:
Emilio Cobos Álvarez 2020-06-11 11:27:58 +00:00
parent 7b5953da95
commit 33b548ae64
No known key found for this signature in database
GPG key ID: E1152D0994E4BF8A

View file

@ -369,7 +369,7 @@ ${helpers.predefined_type(
let id = match *self {
% for font in system_fonts:
SystemFont::${to_camel_case(font)} => {
LookAndFeel_FontID::eFont_${to_camel_case(font.replace("-moz-", ""))}
LookAndFeel_FontID::${to_camel_case(font.replace("-moz-", ""))}
}
% endfor
};