Merge pull request #11957 from lioncash/resource UICommon/ResourcePack: Allow priority helpers to take arguments by const reference