diff options
author | frosch <frosch@openttd.org> | 2020-12-14 21:46:35 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2020-12-14 23:50:50 +0100 |
commit | 484ea62a62d7e09ea550a40ea3ded24dcab8a6d0 (patch) | |
tree | bdcf5185564262f356ca6582365f231aa573deb5 /src/ini_type.h | |
parent | 5d278b62ccdacbf16b482c1d10247def85ceb71c (diff) | |
download | openttd-484ea62a62d7e09ea550a40ea3ded24dcab8a6d0.tar.xz |
Cleanup: use std::optional instead of custom implementation.
Diffstat (limited to 'src/ini_type.h')
-rw-r--r-- | src/ini_type.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ini_type.h b/src/ini_type.h index f98b6395b..b5f8398d9 100644 --- a/src/ini_type.h +++ b/src/ini_type.h @@ -12,7 +12,7 @@ #include "fileio_type.h" #include <string> -#include "3rdparty/optional/ottd_optional.h" +#include <optional> /** Types of groups */ enum IniGroupType { @@ -25,7 +25,7 @@ enum IniGroupType { struct IniItem { IniItem *next; ///< The next item in this group std::string name; ///< The name of this item - opt::optional<std::string> value; ///< The value of this item + std::optional<std::string> value; ///< The value of this item std::string comment; ///< The comment associated with this item IniItem(struct IniGroup *parent, const std::string &name); |