mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Replace Optional with std::optional
This commit is contained in:
parent
34ad551efc
commit
e700182f44
15 changed files with 39 additions and 198 deletions
|
@ -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) {}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue