[12746] Fix static analysis const reference performance warnings