Fix strict warning: pass by reference