diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2024-10-27 21:50:16 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2024-10-27 21:50:16 -0500 |
commit | c3cf6df863828798ed8230b0f0966bcf3b2d08dd (patch) | |
tree | c03f94128e4892d503532f7fb886dcd86fafdf72 /source/fud_utf8.cpp | |
parent | 7174a2741a6f7aa93c9d077dee384f8aa76d7a02 (diff) |
Excise std::optional.
Diffstat (limited to 'source/fud_utf8.cpp')
-rw-r--r-- | source/fud_utf8.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fud_utf8.cpp b/source/fud_utf8.cpp index bffb5c1..bc12c15 100644 --- a/source/fud_utf8.cpp +++ b/source/fud_utf8.cpp @@ -90,11 +90,11 @@ namespace impl { bool isAsciiPredicate(FudUtf8 character, bool (*predicate)(char)) { auto maybeAscii = character.getAscii(); - if (!maybeAscii.has_value()) { + if (!maybeAscii.hasValue()) { return false; } - auto asciiChar = *maybeAscii; + auto asciiChar = maybeAscii.value(); return predicate(asciiChar.asChar()); } |