Merge pull request #11946 from Dentomologist/convert_fromwhichroot_to_enum_class Common: Convert FromWhichRoot to enum class