mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -07:00
Use std::optional instead of boost::optional
This commit is contained in:
parent
08e0349ca3
commit
4429a16ca8
7 changed files with 17 additions and 19 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue