summaryrefslogtreecommitdiff
path: root/source/fud_utf8.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/fud_utf8.cpp')
-rw-r--r--source/fud_utf8.cpp4
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());
}