Don't use qAsConst over a temporary variable

Authored by mlaurent on Apr 15 2019, 5:17 AM.