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: 0c05d2b43ec5ab29efc3db2718289a5600da754c Pick-to: 6.7 Change-Id: Id4a639d9a037c3f1d79ea60faa2715075462fea1 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
parent
210f2004df
commit
68ae776e73
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user