pass parameter by ref instead of by val:

- fixes coverity issue 1212009 Big parameter passed by value