From c3cf6df863828798ed8230b0f0966bcf3b2d08dd Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Sun, 27 Oct 2024 21:50:16 -0500 Subject: Excise std::optional. --- source/fud_utf8.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/fud_utf8.cpp') 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()); } -- cgit v1.2.3