Pass objects by const reference where possible