Some minor optimizations to theme handling and removal of a shared definition in format
Format::defRef
is only used to retrieve the name of the definition to be searched in the theme. The last commit replaces defRef
with defName
, which has the side effect of making Format
always valid, even when the definition is deleted. This can be "fixed" by doing a defName.clear()
when formats in DefinitionData are deleted. I don't think this is important, so I didn't do it.