Minor optimization, use QStringRef over QString

That way we avoid some unnecessary memory allocations

Change-Id: I597443393671d57b1a47b37eb15c3eca54ee4168
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>