I think mrzzzrm already mentioned that these should be const references instead of values.