Don't return a reference to a temporary stack variable, that's bad joojoo

Don't return a ref to a QString which is on the stack and will be gone by the time the caller gets it.