mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Replace Optional with std::optional
This commit is contained in:
@@ -22,10 +22,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <list>
|
||||
#include <optional>
|
||||
|
||||
#include "irrlichttypes.h"
|
||||
#include "util/enriched_string.h"
|
||||
#include "util/Optional.h"
|
||||
#include "settings.h"
|
||||
|
||||
// Chat console related classes
|
||||
@@ -247,7 +247,7 @@ private:
|
||||
struct HistoryEntry {
|
||||
std::wstring line;
|
||||
// If line is edited, saved holds the unedited version.
|
||||
Optional<std::wstring> saved;
|
||||
std::optional<std::wstring> saved;
|
||||
|
||||
HistoryEntry(const std::wstring &line): line(line) {}
|
||||
|
||||
|
Reference in New Issue
Block a user