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
+3 -3
View File
@@ -24,7 +24,6 @@
#include "widgets/splits/SplitContainer.hpp"
#include "widgets/Window.hpp"
#include <boost/optional.hpp>
#include <QDebug>
#include <QJsonArray>
#include <QJsonDocument>
@@ -34,13 +33,14 @@
#include <QScreen>
#include <chrono>
#include <optional>
namespace chatterino {
namespace {
boost::optional<bool> &shouldMoveOutOfBoundsWindow()
std::optional<bool> &shouldMoveOutOfBoundsWindow()
{
static boost::optional<bool> x;
static std::optional<bool> x;
return x;
}