Use std::optional instead of boost::optional

This commit is contained in:
Vladimir Golovnev (Glassez) 2021-01-02 15:45:36 +03:00
commit 4429a16ca8
No known key found for this signature in database
GPG key ID: 52A2C7DEE2DFA6F7
7 changed files with 17 additions and 19 deletions

View file

@ -616,9 +616,9 @@ void TorrentsController::addAction()
const auto autoTMM = TriStateBool::fromString(params()["autoTMM"]);
const QString contentLayoutParam = params()["contentLayout"];
const boost::optional<BitTorrent::TorrentContentLayout> contentLayout = (!contentLayoutParam.isEmpty()
const std::optional<BitTorrent::TorrentContentLayout> contentLayout = (!contentLayoutParam.isEmpty()
? Utils::String::toEnum(contentLayoutParam, BitTorrent::TorrentContentLayout::Original)
: boost::optional<BitTorrent::TorrentContentLayout> {});
: std::optional<BitTorrent::TorrentContentLayout> {});
QList<QNetworkCookie> cookies;
if (!cookie.isEmpty())