Replace boost::optional with std::optional (#4877)

This commit is contained in:
pajlada
2023-10-08 18:50:48 +02:00
committed by GitHub
parent fe4d6121a2
commit fec45889a8
88 changed files with 428 additions and 383 deletions
+2 -2
View File
@@ -87,7 +87,7 @@ bool Settings::isMutedChannel(const QString &channelName)
return false;
}
boost::optional<QString> Settings::matchNickname(const QString &usernameText)
std::optional<QString> Settings::matchNickname(const QString &usernameText)
{
auto nicknames = this->nicknames.readOnly();
@@ -99,7 +99,7 @@ boost::optional<QString> Settings::matchNickname(const QString &usernameText)
}
}
return boost::none;
return std::nullopt;
}
void Settings::mute(const QString &channelName)