mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-01 20:24:36 +01:00
Switch boost::optional to std::optional
This commit is contained in:
parent
85bc96a61c
commit
764a93bf5a
42 changed files with 137 additions and 125 deletions
|
|
@ -57,7 +57,7 @@ void Block::SetCondition(Cond condition) {
|
|||
}
|
||||
|
||||
LocationDescriptor Block::ConditionFailedLocation() const {
|
||||
return cond_failed.get();
|
||||
return *cond_failed;
|
||||
}
|
||||
|
||||
void Block::SetConditionFailedLocation(LocationDescriptor fail_location) {
|
||||
|
|
@ -73,7 +73,7 @@ const size_t& Block::ConditionFailedCycleCount() const {
|
|||
}
|
||||
|
||||
bool Block::HasConditionFailedLocation() const {
|
||||
return cond_failed.is_initialized();
|
||||
return cond_failed.has_value();
|
||||
}
|
||||
|
||||
Block::InstructionList& Block::Instructions() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue