Remove 'const' from variable that may be moved

std::move on const object is ineffective, and the code will
use a performance-wise costlier SMF

Amends: 0c05d2b43e

Pick-to: 6.7
Change-Id: Id4a639d9a037c3f1d79ea60faa2715075462fea1
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
bb10
Juha Vuolle 2024-03-06 13:24:37 +02:00
parent 210f2004df
commit 68ae776e73
1 changed files with 1 additions and 1 deletions

View File

@ -700,7 +700,7 @@ struct HeaderName
explicit HeaderName(QAnyStringView name)
{
const auto nname = normalizedName(name);
auto nname = normalizedName(name);
if (auto h = HeaderName::toWellKnownHeader(nname))
data = *h;
else