QHttpHeaders: remove an unnecessary std::move

The local is always moved in this situation. (I'm not sure why
this function returns a local but other functions use make_optional.)

Amends ed341fcdd18fb4bb58ea4fa9df0be6350a81578c.

Change-Id: I6719691ad13c65af083f1749be475dc8e2da4b07
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
This commit is contained in:
Giuseppe D'Angelo 2025-03-28 12:02:42 +01:00
parent 63ba867ddd
commit 92860503ce

View File

@ -1532,7 +1532,7 @@ std::optional<QDateTime> QHttpHeaders::dateTimeValue(QAnyStringView name) const
return std::nullopt;
QDateTime dt = QNetworkHeadersPrivate::fromHttpDate(*v);
if (dt.isValid())
return std::move(dt);
return dt;
return std::nullopt;
}