Skip to content

Commit

Permalink
replace absl::optional with std::optional
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerwang committed Apr 18, 2024
1 parent 2919b9a commit c192cfe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/api/menuitem/menuitem_mac.mm
Expand Up @@ -76,11 +76,11 @@
SetChecked(checked);
}

absl::optional<bool> enabled = option.FindBool("enabled");
std::optional<bool> enabled = option.FindBool("enabled");
if (enabled)
SetEnabled(*enabled);

absl::optional<bool> isTemplate = option.FindBool("iconIsTemplate");
std::optional<bool> isTemplate = option.FindBool("iconIsTemplate");
if (isTemplate)
SetIconIsTemplate(*isTemplate);

Expand All @@ -104,7 +104,7 @@
SetModifiers(*str);
}

absl::optional<int> menu_id = option.FindInt("submenu");
std::optional<int> menu_id = option.FindInt("submenu");
if (menu_id)
SetSubmenu(object_manager()->GetApiObject<Menu>(*menu_id));
}
Expand Down

0 comments on commit c192cfe

Please sign in to comment.