Change to pass by reference
Merge pull request #7094 from chinhodado/patch-8

Change to pass by reference