[CodingStyle] Don't use references when assigning to local variable

Let the compiler do the optimization